react-dom Questions
1
I have a component that calls React 18's createRoot to render some content inside it often. My issue is that if I try to remove this with unmount on componentWillUnmount it will trigger a warning: ...
12
Solved
I've seen few posts related to this type of error. But couldn't resolve in mine.
My package.json:
"react": "~0.14.7",
"webpack": "^1.12.13",
"react-hot-loader": "^3.0.0-beta.6",
.
.
I'm getting...
Garibald asked 3/3, 2017 at 9:5
5
Solved
I am following Chapter 5, "React with JSX", of "Learning React" from O'Reilly.
I wrote the Recipes App using create-react-app as the base.
index.js
import React from 'react';
im...
Epiphora asked 17/3, 2018 at 12:4
10
Solved
Got this error after upgrading to React when I ran my Jest unit tests:
React depends on requestAnimationFrame. Make sure that you load a polyfill in older browsers.
How do I fix it?
I'm using J...
3
Solved
I'm building a web-app with ReactJS and Flux and I'm trying to get the node of my current div using the method findDOMNode and I get the next error:
Uncaught TypeError: React.findDOMNode is not a ...
0
I am building a price range slider using basic HTML range input but while checking the same with react/next JS application on mobile device, getting the error react-dom.development.js?61bb:6202 Una...
Tiger asked 23/5, 2022 at 10:3
3
Solved
I'm giving next.js a spin and I can't get the simplest setup to work.
Here's my setup:
Relevant libs:
"react": "^16.2.0",
"react-dom": "^16.2.0",
"next": "^4.2.2",
"express": "^4.16.2",
"next-...
Freemon asked 15/1, 2018 at 23:9
1
Solved
import './App.css';
import React from "react";
import { BrowserRouter as Router, Switch, Route, Link } from "react-router-dom";
export default function App() {
return (
<R...
1
This is my first ever Next.js project, and I encountered an odd obstacle. Even though I made sure at least 3 times that I have react-dom and react installed and up-to-date, during next, next build ...
Misadventure asked 21/7, 2019 at 21:16
10
Solved
I'm a bit new to react. I see we have to import two things to get started, React and ReactDOM, can anyone explain the difference. I'm reading through the React documentation, but it doesn't say.
2
Solved
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 to find node on an unmounted component. bundle.js line 1326 >...
Bertie asked 16/7, 2018 at 15:31
2
Solved
React 17.0.1: Invalid hook call. Hooks can only be called inside of the body of a function component
Very new react user here. I have been troubleshooting this error for hours now. I previously had this component working as a class, but it seems everyone is migrating towards functional components ...
6
Solved
I get a typeScript error after upgrading to version 4
Used in useParams () from react-router-dom
"typescript": "^4.0.2"
import { useParams } from 'react-router-dom';
const { su...
Fir asked 30/8, 2020 at 18:2
1
I am writing applications with React Native. I am using Expo.
My React and react-dom versions are 17.0.0 but I get an error like this on the expo web page. How can I solve the problem?
"react&...
Liverwort asked 9/1, 2021 at 14:16
1
Solved
cant able to resolve this error while compiling the code ..! In fact I've tried many other ways of implementation
//Index.css
@tailwind base;
@tailwind components;
@tailwind utilities;
Disputable asked 5/1, 2022 at 18:26
1
Solved
I have two flow of my application one is user side the other is admin side. My user side is responsive so i want meta tag to say <meta name="viewport" content="width=device-width,...
Lichfield asked 20/12, 2021 at 7:19
3
Solved
I am using React with Webpack and Babel. I am getting a runtime error:
Uncaught ReferenceError: ReactDom is not defined
My react version is:
"devDependencies": {
"phantomjs-polyfill": "0.0.2...
Byrdie asked 12/4, 2016 at 14:55
1
Problem
When I try to run my tests via npm test using Jest, with React, and Testing Library I get the following error:
Error
/node_modules/react-dom/cjs/react-dom.development.js:3905
var evt = doc...
Foreandafter asked 23/10, 2021 at 0:14
3
Solved
From the React 16 docs about ReactDOM.hydrate(),
Same as render(), but is used to hydrate a container whose HTML contents were rendered by ReactDOMServer. React will attempt to attach event list...
Plaintive asked 9/11, 2017 at 13:9
5
Solved
After deploying my mern app to Heroku, the GET request on the home page ('http://localhost:8000/post/') is now returning index.html instead of json data from the request. I'm getting 200 status cod...
Penholder asked 23/10, 2020 at 8:45
4
Solved
I'm working on an app using Leaflet (via react-leaflet). Leaflet directly manipulates the DOM. The react-leaflet library doesn't change that, it just gives you React components that you can use to ...
1
When I long-press a toolbar button on my React app in iOS Safari it makes a selection of the icon. I disabled it with CSS on the toolbar:
-webkit-touch-callout: none;
-webkit-user-select: none;
use...
Khajeh asked 14/9, 2021 at 9:21
4
Solved
Im Building a website with Next.Js and I tried to implement an external .js file (Bootstrap.min.js & Popper.min.js) but it is not displayed.
Im not sure what the problem is!
I implemented it l...
Lacuna asked 14/3, 2019 at 15:3
4
Solved
This has got to be one of the strangest issues with webpack i have ever come across...
Check out this bundle breakdown:
react 116.01KB - fair enough
react-dom 533.24KB - seriously WTF
I though...
Henryk asked 10/3, 2017 at 10:7
2
Solved
I made a dropdown toggle in React. My dropdown working perfectly fine. But when I try to close the dropdown while clicking outside of the dropdown menu. It shows error. I used ref to find the conta...
Comanche asked 18/5, 2020 at 5:29
© 2022 - 2024 — McMap. All rights reserved.