Bit with React

Create a new Bit workspace:

$bit
Copiedcopy

Alternatively, start from our quick start for compose a full stack React application or a service-oriented architecture.

Use bit templates to see a list of all available templates:

$bit
Copiedcopy

Create a React app

You can create an app by running the following command:

$bit
Copiedcopy

Run the app:

$bit
Copiedcopy

You can find more information on creating React apps in the React apps docs section.

Create UI components

Create UI components varying from pages to reusable components:

$bit
Copiedcopy

You can fin 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
Copiedcopy

You can find more information on building React hooks at the React hooks docs section.

Release components

You can release your components by running the following commands:

$bit
Copiedcopy

Sync the changes with your remote server:

$bit
Copiedcopy

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.

What's next