0

How can I add a react and add a component in the root-app ( Ex link : Link)? I have tried to import the react and react-dom and add the component but it's not working and the app gets closed.

1 Answers1

0

u should add import map for react and react-dom like this

 "react": "https://cdn.jsdelivr.net/npm/react@16.13.1/umd/react.production.min.js",
    "react-dom": "https://cdn.jsdelivr.net/npm/react-dom@16.13.1/umd/react-dom.production.min.js",