Skip to content

Instantly share code, notes, and snippets.

@tilsammans
Last active December 20, 2015 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tilsammans/a29b9ea1ae25be78d590 to your computer and use it in GitHub Desktop.
Save tilsammans/a29b9ea1ae25be78d590 to your computer and use it in GitHub Desktop.
<%= react_component('PostcodeCheck') %>
var PostcodeCheck = React.createClass({
render: function() {
return (
<section>
<form id="postcodecheck">
<input id="postcode" name="postcode" placeholder="1234AA">
<input id="housenumber" name="housenumber" placeholder="1">
<input id="housenumber_addition" name="housenumber_addition" placeholder="a">
<input type="submit" value="Check!" class="next-button">
<p class="postcodecheck-result"></p>
</form>
</section>
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment