Skip to content

Latest commit

 

History

History
93 lines (72 loc) · 4.01 KB

README.md

File metadata and controls

93 lines (72 loc) · 4.01 KB

Fundamentals

React Ecosystem

Blogs/Sites

Utilities

fake/mock/dummy data api

Good Read

FAQ

  • Why do we need index.js
    Import, modules. Webpack also inserts index.js if not already present
  • we export container from index.js but import the actual component, why

React/JS Best Practices

  • Keep sorted data in redux
  • Use padding instead of margin, wherever applicable
  • Do care about truthy/falsy checks
  • Use optional chaining
  • react performance
    • use memo and pureComponent
    • Avoid anonymous functions
    • Avoid object literals
    • use React.lazy and React.suspense
    • Instead of unmount component to hide, use css props to make it disappear

TODO

JS & TS

React

  • Why we should/should not have const function in class
  • Why we should not create const array functions in class components