--- title: Ticker tags: components,state,beginner --- Renders a ticker component. - Use the `React.useState()` hook to initialize the `ticker` state variable to `0`. - Define two methods, `tick` and `reset`, that will periodically increment `timer` based on `intervalId` and reset `intervalId` respectively. - Return a `
` with two `
); }; ``` ```jsx ReactDOM.render(, document.getElementById('root')); ```