react-handbook icon indicating copy to clipboard operation
react-handbook copied to clipboard

Starter Files & Component Tips

Open ericdiviney opened this issue 2 years ago • 0 comments

I have an idea to have 2 pages for the following type of information:

File templates for Context providers, quick-n-dirty global state with useContext/useState, barrel files and explanation, currying for tons of providers, custom hooks, higher order components, unit/integration/e2e test templates

Basically just a bunch of files people can copy + paste into their project so their not starting from scratch everytime they create a new test file or component file or context file. Just speed up development a tad.

Add ANOTHER new page near component templates - Random component tips and tricks (small tips like the following): - using key={} to reset state for a component - Easier conditional JSX logic blocks - others? These are just little nuggets that senior react devs have living in their heads.

ericdiviney avatar Oct 18 '23 15:10 ericdiviney