<div id="root">
</div>
const App = () => {
const ref = React.useRef(0);
console.log(ref); // { current: 0 }
return (
<div>
</div>
);
}
const root = ReactDOM.createRoot(document.querySelector('#root'));
root.render(<App />);
View Compiled
This Pen doesn't use any external CSS resources.