DEV Community

Discussion on: Do We Need To Compile Website Components?

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).