2 ms·
You don't need to do a separate step to use JSX. JSX is a still a superset of JS and you can still opt to not use it with no additional steps.
by heydenberk 12y ago
You don't need to do a separate step to use JSX. JSX is a still a superset of JS and you can still opt to not use it with no additional steps.
- dsissitka 12y ago"...but I'm not liking how I have to do an extra step if I don't use jsx." http://facebook.github.io/react/blog/2014/10/14/introducing-react-elements.html#react-without-jsx http://facebook.github.io/react/blog/2014/10/14/introducing-...
- skrebbel 12y agoHe's referring to the createFactory stuff. The new JSX transformer automatically generates that boilerplate for you, but if you don't use JSX you'll need to add it everywhere yourself before you upgrade.
- zackify 12y ago"Composite Component functions can no longer be called directly - they must be wrapped with React.createFactory first. This is handled for you when using JSX."