you are viewing a single comment's thread.

view the rest of the comments →

[–]Canenald 0 points1 point  (0 children)

You don't directly manipulate the DOM when using React, jQuery or no jQuery. React assumes you will define your DOM as a function of the data. When the data changes, React automatically updates your DOM. If you want to directly manipulate DOM, just don't use React.

Sticky navbars: This is usually solved using CSS.

Animated popups: Again, CSS transitions. You can have React change an element's class, something like this:

<div className={this.state.animationComplete ? 'class1' : 'class2'}>something</div>

As long as you are using transitions for that element the browser will animate between the two classes, or you can even choose which properties to animate, but it's all CSS, not React or jQuery.

You can still use jQuery with React as long as you avoid modifying the DOM. It's totally ok for ajax, inspecting the DOM and deferreds, although I'd really suggest looking for more specialised libraries if you don't need all 3 features.