javascript - changing props in react_component when using react_rails -
i using helper display datepicker
component
<%= react_component "mydatepicker", startdate: '', enddate: ''%>
i want pass javascript values startdate
, enddate
props. possible way this?
i don't know you're trying here if want values of props component rails controller, following. can set state of props in react component , send ajax request whenever user selects date.
Comments
Post a Comment