Come usare React su codepen.io

Ciao a tutti, ho problema nel far visulizzare i miei componenti react su codepen.io; ho fatto il reactDOM.render, ho selezionato la scrittura babel dalle scelte del linguaggio javascript, ma ancora non riesco, qualche aiuto? grazie in anticipo

posta il link del tuo progetto

il mio componente per il progetto
mi fa errore di sintassi dicendo ‘React is not defined’

You didn’t add React to the pen. At the top of the JS add these imports.

import * as React from "https://cdn.skypack.dev/react@17.0.1";
import * as ReactDOM from "https://cdn.skypack.dev/react-dom@17.0.1";

Thank you!! now it works! :slight_smile:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.