react-towel
v2.0.1
Published
Rapid React Prototyping
Downloads
6
Readme
React Towel
Rapid React Prototyping
React Towel brings together react, react-dom, and throw-in-the-towel to make it dead simple to start using React with JSX.
- Reference the script from a cdn
- Start writing code (including JSX) in
<script type="text/babel"></script>
tags - Or in external files:
<script type="text/babel" src="./external.js"></script>
- View the page
- Profit?
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="https://npmcdn.com/react-towel@2/umd/react-towel.js" charset="utf-8"></script>
<script type="text/babel">
const Winner = () => <h1>winning?</h1>
ReactDOM.render(
<Winner />,
document.getElementById('root')
)
</script>
</head>
<body>
<div id="root"></div>
</body>
</html>