C:/Users/admin/node_modules/react-native-web/dist/exports/createElement/index.js
Module not found: Can't resolve 'react-dom/unstable-native-dependencies' in 'C:\Users\admin\node_modules\react-native-web\dist\exports\createElement
Error on yarn start
code block that works
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import reportWebVitals from './reportWebVitals';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
reportWebVitals();
code block that breaks
import App from './App';
import reportWebVitals from './reportWebVitals';
import { AppRegistry } from 'react-native'
AppRegistry.registerComponent("App",()=> App);
AppRegistry.runApplication("App", {
initialProps: {},
rootTag: document.getElementById("root")
})
reportWebVitals();
I'm trying to follow this tutorial from freecodecamp https://youtu.be/_CBYbEGvxYY?t=293 and I'm unsure where I went wrong