2 ms·
One of the nice things about React's component model is that it's fairly straightforward to wrap up imperative DOM manipulation like a jQuery plugin into a decl
by acemarke 9y ago
One of the nice things about React's component model is that it's fairly straightforward to wrap up imperative DOM manipulation like a jQuery plugin into a declarative React component (assuming the DOM manip is scoped and not page-wide).
The React docs recently added a section on integrating with non-React code [0], and I've got links to several more articles discussing integration and interop at [1].
[0] https://facebook.github.io/react/docs/integrating-with-other-libraries.html https://facebook.github.io/react/docs/integrating-with-other...
[1] https://github.com/markerikson/react-redux-links/blob/master/react-component-patterns.md#wrapping-non-react-code https://github.com/markerikson/react-redux-links/blob/master...