Two React Tips

Two Reacts Won’t Be Friends

  • You installed a package that specifies React as a dependency, and later installed React;
  • You installed React, and later a package that specifies a different version of React as a dependency;
  • You’re using a global React you get from CDN, but installed a library from NPM that got its own copy of React;
  • You ran npm install inside some NPM dependency’s folder, thus installing its development dependencies that likely include React;
  • Magic.

Don’t Render to Body

--

--

--

Working on @reactjs. Co-author of Redux and Create React App. Building tools for humans.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Dan Abramov

Dan Abramov

Working on @reactjs. Co-author of Redux and Create React App. Building tools for humans.

More from Medium

My Time In React.

Square Payments with React, Typescript, and Netlify Functions

React Life Cycle Hooks

React Hooks