react-jsx Flashcards
What is JSX?
a syntax extension to javascript. aka , adds additional syntax to javascript that is eventually compiled to js code. nothing actually runs in jsx. it just helps to get a visual idea of what your dom looks like when building in react
Why must the React object be imported when authoring JSX in a module?
because JSX must compile into React methods likes createElement(type,props,children). which is then converted to js
How can you make Webpack and Babel work together to convert JSX into valid JavaScript?
by telling babel-loader to use babel-transform.
details about plug-ins and webpacks
webpack isnt useful without a loader and a loader isn’t useful without a plugin