Top "React-dom" questions

React package for working with the DOM.

TypeError: react__WEBPACK_IMPORTED_MODULE_0___default(...) is not a function

I am making a To-do app using the Context API in React. On starting the deveopment server, it throws the …

javascript reactjs react-dom context-api
Why do I need to wrap React/Enzyme state changes in act?

In my simple React/ReactDOM/Enzyme unit test I get a warning from ReactDOM about wrapping any mutations to state …

reactjs jestjs enzyme react-dom
React DnD: Avoid using findDOMNode

I don't fully understand it but apparently it isn't recommended to use findDOMNode(). I'm trying to create drag and drop …

javascript reactjs react-dom react-dnd strict-mode
How to update props of React Component rendered using ReactDOM.render()

I am trying to integrate react into my angularjs webapp. In my controller I create the component, which initially has …

javascript angular reactjs react-dom
When to use act() in jest unit tests with react-dom

According to the react unit testing documentation: act() To prepare a component for assertions, wrap the code rendering it and …

reactjs unit-testing jestjs react-dom
find size of react component or image before rendering

I have a list of images of different sizes. images = ['https://example.com/1.jpg','https://example.com/2.jpg', ... ] I want …

reactjs react-dom
react-dom blowing out webpack bundle size MASSIVELY

This has got to be one of the strangest issues with webpack i have ever come across... Check out this …

javascript reactjs webpack-2 react-dom babel-loader
React: How to display error on incorrect user login

I am a beginner in React and was implementing a function where on a button click in the render method, …

javascript reactjs react-redux react-router react-dom