--- title: Ticker tags: visual,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 `interval` and reset `interval` respectively. - Return a `
` with two `
); } ``` ```jsx ReactDOM.render(, document.getElementById('root')); ```