Last active
January 10, 2019 13:44
-
-
Save myns/4c4c3f078f8c50fd41f2342e6da5215b to your computer and use it in GitHub Desktop.
React basic sayfa örneği
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> | |
<head> | |
<meta charset="utf-8"> | |
<script src= "https://unpkg.com/react@16/umd/react.production.min.js"></script> | |
<script src= "https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script> | |
</head> | |
<body> | |
<div id='root'> | |
</div> | |
<script> | |
ReactDOM.render( | |
React.createElement("div", {id:"sayfam"}, null , | |
React.createElement("label", {id:"etiket1", for:"kutucuk1"}, "Adınız" ), | |
React.createElement("input", {id:"kutucuk1"}, null), | |
React.createElement("button", {id:"dugmecik1", type:"button"}, "Kaydet") | |
), | |
document.getElementById('root') | |
); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment