Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

sudipstha08/react

Repository files navigation

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

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /