Hello,
I know that in React I can just give every React Component their own DOM node to be rendered on, but they're still in the same project that way.
Is it possible to make several React projects, let's say, one that handles the navbar, one that handles the content, and another one that handles the footer and render them onto the same template?
The idea is to seperate this way to simulate different dev teams being responsible for their own project/part of the website.
I suppose you could set them up as dependencies in your project and import them using modules? That way you could have multiple repos and reference them in your package.json.
Thank you for this very informative article. I was able to learn a lot about HTML Templat design by reading this post. Thanks to the author of this post. I used to follow htmltemplates for Html Template Design inspiration. After reading this post I decided to keep your profile on my favorites list.
Ben Buchanan (200ok)
I make some bits of the web.
Basic setup is to put the JSX templates into their own repo; bring that in with your choice of package manager; and each project
requires them like any other package code. There are a lot of tutorials out there on setting up a UI/component library so I won't reinvent them here ;)The main thing you will need to work out is how to make the shared package available, assuming you're not open sourcing it:
...main thing to note about that approach is all your builds will need SSH access as well, so they can access the repo. Also, we found NPM was quite slow pulling from private git repos; and didn't put much feedback onto the screen (worst case was someone on a slow connection getting no Terminal feedback for 10mins). We actually found Bower worked better, but since it's deprecated I wouldn't go there at this point."dependencies": { "yourcomponents": "git+ssh://git@bitbucket.org/account/repo.git#1.2.3" }