Hoisting in nextJs
Wondering if this can somehow be enabled?
I've seen some React projects that allow this, but I'm not sure how to enable it. (see pic)
I've seen some React projects that allow this, but I'm not sure how to enable it. (see pic)

const logHandler = () => handleFoo(); // 'handleFoo' was used before it was defined
const handleFoo = () => console.log('foo');