Sharing Reusable Component in React.Js

You probably stuck with sharing reusable component through your project modules. If npm does that it’s taken me plenty of time to share the code base between modules. So git has an answer for it saying git submodules.

git submodules
  1. url : origin url ( bitbucket, github or any where )
  2. branch : default branch to pull and push updates from origin
  1. Minimal code conflicts. Since every sub module keep their own git history, contributors easily can work together without conflicting code based
  2. Visual Code support out of the box

Full Stack Technical Lead @Srilanka ( JavaScript, React.Js, Node.js, Git )