✳flâneur — a map of the web's best reading
React handbook
devouringdetails.com · 1,911 words · saved by 1 readers
How do you name props? Why are enum props good? What the hell is composability and why is it useful? Should you always use React?
React handbook How do you name props? Why are enum props good? What the hell is composability and why is it useful? Should you always use React? If you've ever thought about these questions then you're in the right place. I'm not preaching absolute truth but merely some personal preferences and understandings of what makes a good React component. Contextual props A common flaw I see in naming props for components is duplication of context. Consider this example: < Dialog isDialogOpen = { isDialogOpen } onDialogClose = { ( ) => setIsDialogOpen ( false ) } /> The props for controlling the dialog
Explore this link on the map →related reading
- Tutorial: Tic-Tac-Toe – Reactreactjs.org
- How Props Work in React – A Beginner's Guidefreecodecamp.org
- You Might Not Need an Effect – Reactreact.dev
- Composition vs Inheritance – Reactreactjs.org
- Blogged Answers: A (Mostly) Complete Guide to React Rendering Behavior · Mark's Dev Blogblog.isquaredsoftware.com
- React graph viscrubier.github.io
- Tao of React - Software Design, Architecture & Best Practices | Alex Kondovalexkondov.com
- Why React Re-Renders • Josh W. Comeaujoshwcomeau.com
- Building Bulletproof React Components - Shu Dingshud.in
- Building a Design System from scratch - The Blog of Maxime Heckelblog.maximeheckel.com
- Rules of React – Reactreact.dev
- Typing Component Props | React TypeScript Cheatsheetreact-typescript-cheatsheet.netlify.app