import React, { StrictMode, useState } from 'react'; import { createRoot } from 'react-dom/client'; import './style.css'; function App() { const [count, setCount] = useState(0); return ( Neighbourhood lending desk setCount((value) => value + 1)}>Inspect one item Inspected locally: {count} {count === 0 ? 'Start with the first item.' : 'Keep notes for any damage.'} ); } createRoot(document.getElementById('root')).render( , );
{count === 0 ? 'Start with the first item.' : 'Keep notes for any damage.'}