I'm a newbie in React and I was wondering what is the purpose of registerServiceWorker() in the following code?  import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceW...
I've inherited a react/node/prismic application where we need to update the prismic-reactjs package, which resulted in needing to update a few others- in total, we changed:  prismic-reactjs: 0.2.0 ? 1.1.0  react: 15.6.1 ? 16.0.0  webpack: 3.12.0...
I'm on a situation where I want to make some dom-node size calculations (top, bottom and size properties of the rendered DOM node)  What I'm doing right now, on the componentDidUpdate method is to call findDOMNode on this:   componentDidUpdat...
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",    "react-addons-te...
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 thought it may be a corruption in my dependencies but nuki...
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 > eval:42:15 invariant webpack:///./node_modules/fbjs/...
We are using hydrate from react-dom in a project and are having a hard time detecting broken image links. These images come from a 3rd party API so we have no way of knowing which links work beforehand.  export default class Image extends PureCompone...
I have the following script:  app.js  import React from 'react' import ReactDOM from 'react-dom' import {Stage, Sprite} from '@inlet/react-pixi';  const App = () => (     <Stage>         <Sprite image="assets/b...
I am trying to call a component from another component to display some html and it works if I call the component alone, but if I add more markup inside the same return function, it throws the following error:  Adjacent JSX elements must be wrapped in...
I have been thinking about how to optimize react server side rendering, especially the portion of my app that is the bottleneck, which is the synchronous renterToString invocation. Because this is a blocking call, having long function renderToString...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.