Last active
August 4, 2018 17:06
-
-
Save jairoFernandez/577a5839d58a4abf0cb6ccff2a958551 to your computer and use it in GitHub Desktop.
Get started with reactjs without node
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script> | |
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.26.0/babel.min.js"></script> | |
</head> | |
<body> | |
<h1>Proyecto React</h1> | |
<div id="marco"></div> | |
<script type="text/babel"> | |
class Principal extends React.Component{ | |
render(){ | |
return( | |
<h3>hello desde componente</h3> | |
) | |
} | |
} | |
ReactDOM.render( | |
<Principal />, | |
document.getElementById('marco') | |
) | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment