E
E
exxagw2017-03-28 21:22:14
JavaScript
exxagw, 2017-03-28 21:22:14

Why is reactjs killing jquery?

There is a "component" in react + a bunch of jquery plugins, so all plugins die when react is connected. The console is empty.
And if you remove

this.test = ReactDOM.render(<test/>, document.getElementById('test'));

Plugins miraculously come to life

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Feninets, 2017-04-07
@fnnzzz

because VirtualDOM works under the hood, which diffs some object with the real DOM and, in case of a mismatch, rolls back all changes to the DOM.
try to initialize plugins via ref in react itself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question