DEV Community

Discussion on: Do We Need To Compile Website Components?

Collapse
 
neutrino2211 profile image
Mainasara Al-amin Tsowa

Thanks and I agree, Vue runs perfectly well in a browser but react and angular are the "some assembly required" type of libraries, react is in this group because its method for making apps without jsx is not as easy as what Vue offers and in most cases it is easier to use the command-line than to try it without JSX

Collapse
 
sergiodxa profile image
Sergio Daniel Xalambrí

React could also totally run on browsers, the documentation also explain you how to do it

reactjs.org/docs/add-react-to-a-we...

Load the code from a CDN, create your component using React.createClass and render it, JSX is a nice add-on but is not required, and if the syntax of React.createClass is too verbose you could use htm to use a pseudo JSX syntax using template literals (the docs mentions Preact but it works with React too).