title: Why I cannot use react State hooks globally (outside class and function)
body: <p>I want to test some code documentation on sandbox/another online fiddles, but those does not have class or even function other than <code>ReactDOM.render</code>, then I want to use the state component to test if it can be used in my code. How is it possible without creating a new class/function? If it is not possible in any way, why so?</p>