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

> JSX is not a requirement for using React. Using React without JSX is especially convenient when you don't want to set up compilation in your build environment.

> Each JSX element is just syntactic sugar for calling React.createElement(component, props, ...children). So, anything you can do with JSX can also be done with just plain JavaScript.

Source: https://facebook.github.io/react/docs/react-without-jsx.html



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

Search: