skratchdot / react-bootstrap-daterangepicker

A date/time picker for react (using bootstrap). This is a react wrapper around the bootstrap-daterangepicker project.
http://projects.skratchdot.com/react-bootstrap-daterangepicker/
Other
474 stars 203 forks source link

Version without jQuery #29

Closed tennisonchan closed 4 years ago

tennisonchan commented 9 years ago

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 put virtualDOM 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 without jQuery.

skratchdot commented 9 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...

peter-mouland commented 9 years ago

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?

damassi commented 8 years ago

@peter-mouland Yup, lots of interest. In the age of React jQuery is no longer necessary.

janmentzel commented 8 years ago

@peter-mouland Yes, re-rendering becomes expensive if jquery stuff is integrated into react components.

peter-mouland commented 8 years ago

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

ConAntonakos commented 8 years ago

@peter-mouland, that's unfortunate news! What was the alternative you used?

MaxOrelus commented 8 years ago

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?

skratchdot commented 8 years ago

@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).

skratchdot commented 4 years ago

closing this due to inactivity. please re-open if this is still an issue in v6.0.0 or greater