Skip to content

rismanss/boilerplate-react-hooks

Repository files navigation


boilerplate-react-hooks

boilerplate for your React projects.


Introduction

this is boilerplate for react hooks

Features

  • React — 16.13.1 with Hooks for handle state management
  • Router - for routing the application
  • Babel — ES6 syntax, Airbnb & React/Recommended config
  • Webpack — Hot Reloading, Code Splitting, Optimized Build
  • CSS — CSS
  • Lint — ESlint

Getting started

  1. Clone this repo using https://github.com/rismanss/boilerplate-react-hooks.git
  2. Move to the appropriate directory: cd boilerplate-react-hooks
  3. Run npm install to install dependencies
  4. Run npm start to see the example app at http://localhost:8080

Commands

  • npm start - start the dev server
  • npm run build - create a production ready build in dist folder
  • npm run lint - execute an eslint check
  • npm run lint:fix - execute an eslint and fix the errors

Next features

  • Hot Module Replacement: Better HMR support;
  • Tests: Jest, React Testing Library;
  • PWA: Turn into a PWA boilerplate;
  • SEO: SEO-ready;

License

MIT license