Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

271
Views
Why can't I install react-dom@experimental?

I'd like to try out some of the new Concurrent Mode features in React 18. The official documentation, as well as several articles, claim that you just need to install react@experimental react-dom@experimental. I have done so but I am met with the following error:

Property 'unstable_createRoot' does not exist on type 'typeof import("C:/my-app/node_modules/@types/react-dom/index")'.  TS2339

  > 10 | ReactDOM.unstable_createRoot(document.getElementById("root")).render(<App />);
       |          ^

This is my trying to add this import to an existing project that is already working, not a new project from scratch

EDIT2: Here is my code:

import React from "react";
import ReactDOM from "react-dom";
import { App } from "./App";

ReactDOM.unstable_createRoot(document.getElementById("root")).render(
  <React.StrictMode>
      <App />
  </React.StrictMode>
);
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

That's a Typescript error/warning. (If you are not using Typescript, it's your editor using it behind the scenes.)

Your @types/react package doesn't have the unreleased experimental function you're trying to use.

See the comments in https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/experimental.d.ts#L2 to see how to bring the experimental bits into scope.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!