Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, the JSX is compiled (or "transformed") to JavaScript which creates components internally in React:

https://babeljs.io/repl/#?experimental=true&evaluate=true&lo...

I felt the same as OP when I first started using React, although it makes more sense now I've played with it, I'm still not sure about mixing concerns (code and view) in the same file. Especially when you start talking about CSS too...

https://speakerdeck.com/vjeux/react-css-in-js



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: