Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

279
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda