2.0.1 • Published 8 years ago

react-towel v2.0.1

Weekly downloads
12
License
ISC
Repository
github
Last release
8 years ago

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.

  1. Reference the script from a cdn
  2. Start writing code (including JSX) in <script type="text/babel"></script> tags
  3. Or in external files: <script type="text/babel" src="./external.js"></script>
  4. View the page
  5. 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>
2.0.1

8 years ago

2.0.0

8 years ago

1.0.0

8 years ago

0.14.3

8 years ago

0.0.0

8 years ago