Here’s how I write typical React components: function Counter() { const [count, setCount] = React.useState(0) const increment = () => setCount(c => c + 1) return <button onClick={increment}>{count}</button> } Notice how I mix arrow functions and function declarations. The number ...