How can I use Pikaday with ReactJS?
问题 I would like to use the Pikaday datepicker with ReactJS. It is not based on ReactJS. How can I use it? 回答1: To use Pikaday with ReactJS you can require it as you would any other node module. The trick is to hook into the React rendering event so that after the view is rendered, Pikaday is initialized on any rendered DOM inputs you want to use it on. You can do this with the ReactJS lifesystle event componentDidRender : componentDidMount: function() { new Pikaday({ field: React.findDOMNode