This project was bootstrapped with Create React App.

Articles that might interest you:

Initialize bit in main repo:

bit init --package-manager yarn
bit login
bit import bit.envs/compilers/react-typescript --compiler

Add to package.json:

{
  "peerDependencies": {
    "react": "^16.9.0",
    "react-dom": "^16.9.0"
  }
}
bit add src/components/Button
bit tag button
bit export

Export new version in main repo:

bit tag button # or: bit tag --all
bit export

Use component in another repo (consumer repo):

yarn add @bit/<username>.test.button

Edit component in another repo (consumer repo):

  • Install component via "yarn add @bit/.test.button"
  • Import component:
bit init --package-manager yarn
bit import <username>.test/button
  • Modify code
  • Export normally (via bit tag & bit export)

Update modified component in main repo:

bit import
bit checkout latest --all