Top "React-dom" questions

React package for working with the DOM.

When exactly is `componentDidMount` fired?

This is a recurring problem I have with React. The componentDidMount method is guaranteed to be fired when the component …

reactjs react-dom
ReactDom is undefined

I am using React with Webpack and Babel. I am getting a runtime error: Uncaught ReferenceError: ReactDom is not defined …

javascript reactjs webpack babeljs react-dom
Is it ok to use ReactDOMServer.renderToString in the browser in areas where React isn't directly managing the DOM?

I'm working on an app using Leaflet (via react-leaflet). Leaflet directly manipulates the DOM. The react-leaflet library doesn't change that, …

reactjs leaflet react-dom
React renderToString() Performance and Caching React Components

I've noticed that the reactDOM.renderToString() method starts to slow down significantly when rendering a large component tree on the …

performance reactjs isomorphic-javascript render-to-string react-dom
React 16: Error: Unable to find node on an unmounted component

I recently upgraded my project from React v15.2.1 to 16.4.1 and my Sidebar component is throwing the following error: Error: Unable …

javascript reactjs react-dom
Failed to set an indexed property on 'CSSStyleDeclaration': Index property setter is not supported

I am getting above error in my react project when chrome version is updated to 74 (latest version).

css google-chrome react-dom
ReactDOM.render Cannot read property

Index.js: import React from 'react'; import buttonsInstance from 'components/button-instance'; import {ReactDOM} from 'react-dom'; ReactDOM.render(buttonsInstance, document.getElementById(…

reactjs react-bootstrap react-dom
Warning: React.createElement: type is invalid -- bundle.js

I'm taking a tutorial to learn React JS, everything was fine, for days I could run an example, simple, carrying …

javascript node.js reactjs webpack react-dom
"React must be in scope when using JSX" (react/react-in-jsx-scope with "window.React = React" on index.js)

I am following Chapter 5, "React with JSX", of "Learning React" from O'Reilly. I wrote the Recipes App using create-react-app as …

reactjs jsx create-react-app react-dom