Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const Example = () => {
const [message, setMessage] = useState('No option clicked');
return (
setMessage('1st option clicked')} />
setMessage('2nd option clicked')} />
setMessage('3rd option clicked')} />
setMessage('4th option clicked')} />
<p>{message}</p>
);
};