Did you know you can use
Not exactly a debugging best practice, but a handy trick when you need a quick log without changing your component structure.
React devs, did you know this?
#react #devs #tips
console.log() directly inside JSX/TSX?
tsx
const App = () => ( <div> {console.log("Hello from JSX!")} <h1>Hello World</h1> </div> );
commit e2d119f