JSFiddle - React, Tailwind, and code Playground
by John Wick
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.24/browser.js"></script>
<script src="https://fb.me/react-with-addons-15.0.1.js"></script>
<script src="https://fb.me/react-dom-15.0.1.js"></script>
<!-- <script src="http://fb.me/react-js-fiddle-integration.js"></script> -->
<script src="https://facebook.github.io/react/js/jsfiddle-integration-babel.js"></script>
<div id="container">
<!-- This element's contents will be replaced with your component. -->
</div>
JavaScript 1.7
var HelloMessage = React.createClass({
render: function() {
return (
<div>
<form name="secret" encType="multipart/form-data" method="POST" action="http://localhost:8080/uploadFile">
Please choose two files to upload.
<br/>
File 1:<input type="file" id="profilePic" name="profilePic" />
<br/>
<input type="submit" value="submit" />
</form>
</div>
)
}
});
ReactDOM.render(
<HelloMessage />,
document.getElementById('container')
);