Theo's Typesafe CultTTC
Theo's Typesafe Cult4y ago
4 replies
esponges

Hoisting in nextJs

Wondering if this can somehow be enabled?

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


I've seen some React projects that allow this, but I'm not sure how to enable it. (see pic)
unknown.png
Was this page helpful?