0.2.0 • Published 9 months ago
@carbon/cra-template v0.2.0
@carbon/cra-template
This is the official Carbon Design System template for Create React App.
Usage
To use this template, add --template @carbon
when creating a new app.
For example:
npx create-react-app my-app --template @carbon
# or
yarn create react-app my-app --template @carbon
For more information, please refer to:
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.
Prerequisites
A GitHub personal access token (PAT) is required for the example /repopage
to
be able to fetch repository data.
- Create a personal access token in GitHub
- Create an
.env
file in the root directory - Add the token to the
.env
file
REACT_APP_GITHUB_PERSONAL_ACCESS_TOKEN=xxx