Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 1.38 KB

babel-standalone.md

File metadata and controls

29 lines (16 loc) · 1.38 KB

Running Babel standalone in a WCM component

Add @babel/standalone to the theme

In addition to adding React and ReactDOM, we will also need to add babel to the theme so we can use JIT transpiling on the browser. It is recommended to use Node to pre-compile your React components / JSX. See the @babel/standalone documentation for more information.