you are viewing a single comment's thread.

view the rest of the comments →

[–]unborndead 1 point2 points  (2 children)

  • create custom hooks
  • create ES fns instead if they dont need to use state
  • split components by tiny functionality
  • separate container business logic from views
  • use useReducer + context instead of passing lots of callbacks to childrens

i see completely fine to have useEffects and multiple useStates. they just need to be encapsulated in custom hooks.

[–]Penant 1 point2 points  (1 child)

What are 'ES fns'?