Software Engineer
class MyComponent extends React.Component { render() { // Render here } }
render
: the only required method
What if I told you, React is
NOT ONLY FOR RENDERING
?
Headless ~ Renderless
No Rendering === No GUI
return null
this.props.children(...args)
withRouter
connect
© Merrick Christensen
Bring back Tails and Heads text for SEO
Your coworker comes by and wants to re-use your CoinFlip component for new usecase <DiceRoll />
(🔉 Crushing barebones sound in the background)
Let's decouple the logic from rendering.
Like any other abstractions, when the benefits weigh more than the costs.