We want to have a small example project showing the different ways Britecharts-React can be added to our user's project.
This project will serve us in two ways:
- It will demonstrate different installation ways for our users
- It will help us test that those different bundling targets are working properly
This is a simple Create-react-app with a donut component loaded in different ways, showing how to bring in Britecharts-react through the different methods:
Using NPM
- with the whole bundle importing as ES205
- with the whole bundle importing as CommonJS
- with individual esm modules from lib
- with individual umd files from lib
- with individual commonjs files from lib
Follow these steps:
- Clone the repo
- Install dependencies with
yarn
- Run demo with
yarn start
- Navigate to localhost:3000