React example

react
const Example = () => {
	const [count, setCount] = React.useState(0);

	return (
		<div>
			<h1>{count}</h1>
			<button onClick={() => setCount(count + 1)}>Add 1</button>
		</div>
	);
};

const Demo = () => <Example />;

export default Demo;