Skip to content

Latest commit

 

History

History
72 lines (63 loc) · 2.61 KB

README.md

File metadata and controls

72 lines (63 loc) · 2.61 KB

React TS template 📚

Basic commands 🔧

commands description
yarn start run the development server
yarn install install dependencies
yarn lint run linter
yarn remove remove a package
yarn build build application
yarn test Run test cases
yarn test -- --coverage Coverage Reporting

Tech Stacks 📦

tech description
react js library
axios promise based HTTP client
react-query data fetching library
eslint/prettier linting

cypress

  • yarn cypress open

References

OpenSource

Best Pratices

  • Naming Conventions
  • Avoid the Use of the State as much as possible
  • Write DRY Code
  • Try to Avoid Unnecessary Div
  • Remove Unnecessary Comments from the Code
  • Use Destructuring to Get Props
  • Apply ES6 Spread Function
  • The Rule of 3
  • Manage too Many Props with Parent/Child Component
  • Use Map Function for Dynamic Rendering of Arrays
  • Dynamic Rendering with && and the Ternary Operator
  • Use es-lint or Prettier for Formatting
  • Write Tests for Each Component
  • Make Use of a Linter