Closed tennisonchan closed 4 years ago
I like this idea, but tried to explain why the lib is the way it is in issue #12. Please see the comments there...
I like this idea - I have started created a port of bootstrap-daterangepicker to react, without the need for a wrapper and no need for jQuery. Is there interest in this also?
@peter-mouland Yup, lots of interest. In the age of React jQuery is no longer necessary.
@peter-mouland Yes, re-rendering becomes expensive if jquery stuff is integrated into react components.
I did start this, but because of the lack of test in the core component I gave up and found an alternative. As is common with this sort of thing - i've also moved companies and no longer have need for a date-picker so didn't get to finish it! sorry guys
@peter-mouland, that's unfortunate news! What was the alternative you used?
I'm interested to know if there is a non jquery version of the lib? Last comment was Feb 29th, so just wanted to bump this again. Also is there an alternative out there that's not using jquery?
@MaxOrelus - here's a pure react date range picker library that I've seen that looks pretty good: https://github.com/Adphorus/react-date-range
There won't be a non-jquery version of this library as it is a react wrapper around an existing library that requires both jquery (and bootstrap).
closing this due to inactivity. please re-open if this is still an issue in v6.0.0 or greater
Why
One of the things makes ReactJS powerful is
virtualDOM
, which React will handle all the DOM manipulation and decide if a change should be applied or not. Think about it, both Angular and Ember are going to putvirtualDOM
concept into their coming version 2.0.In that sense,
jQuery
should not be used in ReactJS as ReactJS doesn't encourage people to do any direct DOM modification and it can be done withoutjQuery
.