Created
October 28, 2018 04:48
-
-
Save amit1952/5515709b19dfc3dc12ec6b6d4baab561 to your computer and use it in GitHub Desktop.
React and Babel CDN links
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- REACT LIBRARY --> | |
<script src="https://unpkg.com/[email protected]/dist/react.js"></script> | |
<!-- REACT DOM LIBRARY --> | |
<script src="https://unpkg.com/[email protected]/dist/react-dom.js"></script> | |
<!-- BABEL LIBRARY --> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.25.0/babel.min.js"></script> |
thanks
<title>Document</title>
<script src="https://unpkg.com/[email protected]/umd/react.production.min.js"></script>
<script src="https://unpkg.com/[email protected]/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/[email protected]/babel.min.js"></script>
<style>
body {
margin: 0;
overflow: hidden;
}
</style>
<div id="app"></div>
<script type = "text/babel">
function App() {
<h1>HELLO WORLD</h1>
};
ReactDOM.render(<App/>, document.querySelector("#app"));
</script>
<script src="https://unpkg.com/[email protected]/umd/react.production.min.js"></script>
<script src="https://unpkg.com/[email protected]/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/[email protected]/babel.min.js"></script>
<
<script type="text/babel">
class App extends React.component{
rende(){
return <h1>Hello World!</h1>
}
}
ReactDOM.render(<App/>,document.getElementById("root"))
</script>
[How to import js file in react using online CDN?
thanks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Links to react, react-dom, and babel libraries as required in the "Hello React" course on Udemy.