In the latest javascript sdk Symbol-sdk v3 is not compatible with React. To ensure developer having a smooth experience building Symbol in React. This boilerplate will save you some trouble and directly jump in and start.
The React project was bootstrapped with Create React App with some of overwrite config to ensure using Symbol-sdk v3 without any issue. In addition, ESLint rules from core team is added as well.
- Clone the project.
git clone https://github.com/AnthonyLaw/symbol-react-boilerplate my-new-project
- Install the required dependencies.
cd my-new-project
npm install
sh init.sh # to update submodules
- Start application.
npm start
- Visit http://localhost:3000/#/ in your browser.
npm run test
lint comment use for all file in src.
npm run lint
npm run lint:fix
build react project
npm run build