Skip to content

Instantly share code, notes, and snippets.

@AndrewIngram
Created February 19, 2014 17:45
Show Gist options
  • Save AndrewIngram/9097348 to your computer and use it in GitHub Desktop.
Save AndrewIngram/9097348 to your computer and use it in GitHub Desktop.
var Datepicker = React.createClass({
render: function() {
return this.transferPropsTo(<input />);
}
});
$(document).ready(function() {
$('.datepicker').each(function(index, element) {
React.renderComponent(
<Datepicker />,
element
);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment