coz
coz
SSolidJS
Created by coz on 12/11/2023 in #support
What is JSX's hoisting behavior?
My code runs now but I wonder what's going on 🙂 if I place
const a = Test;
function Test() {}
console.log(a);
const a = Test;
function Test() {}
console.log(a);
inside a .jsx that is outside a function, undefined will be printed. However if I place it inside a function that is called with render the function will be printed. So what is the hoisting behavior under JSX?
10 replies