O'Reilly logo

Developing a React Edge: The JavaScript Library for User Interfaces by The League of Extraordinary Developers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. DOM Manipulation

For the most part, React’s virtual DOM is sufficient to create the user experience you want without having to work directly with the actual underlying DOM at all. By composing components together you can weave complex interactions together into a cohesive whole for the user.

However, in some cases there is no avoiding working with the underlying DOM to accomplish what you need. The most common use cases for this are when you need to incorporate a third-party library that does not use React, or when you need to perform an operation that React does not natively support.

To facilitate this, React provides a system for working with DOM nodes that are being managed by React. They are only accessible during certain parts ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required