Bit with React
Create a new Bit workspace:
$bit new basic my-workspace
Copied
Alternatively, start from our quick start for compose a full stack React application or a service-oriented architecture.
Build React components in the cloud
Start building reusable React component using a web-based starter projects. Sign up for a free Bit Cloud account to access Cloud Workspaces and dive right in!
Use bit templates to see a list of all available templates:
$bit templates
Copied
Create UI components
Create UI components varying from pages to reusable components:
$bit create react login
Copied
You can find more information on building UI components at the React UI components docs section.
Create React hooks
Create reusable React hooks for fetching data and encapsulating state.
$bit create react-hook hooks/use-me
Copied
You can find more information on building React hooks at the React hooks docs section.
Create a React app
You can create an app by running the following command:
$bit create react-app my-app
Copied
Run the app:
$bit run my-app
Copied
You can find more information on creating React apps in the React apps docs section.
Release components
You can release your components by running the following commands:
$bit tag --message initial release
Copied
Sync the changes with your remote server:
$bit export
Copied
In case you are looking to build with your own CI, automate these commands from a CI yourself or use our scripts for automating the process.