Skip to content

02 raw-react import need to be given '../../../public/react.js' but your code has '/react.js'. it is not working unless we update to '../../../public/react.js'  #437

@Rajanusa

Description

@Rajanusa

Whenn I run this index.hml, it gives error.

02 raw-react import need to be give '../../../public/react.js' bu your code from '/react.js'
Can you please advise for the
I run npm run stup
am i missing anything?

<html>
	<body>
		<div id="root"></div>

		<script type="module">
			import { createElement } from '../../../public/react.js'
			import { createRoot } from '../../../public/react-dom/client.js'

			const rootElement = document.getElementById('root')
			const element = createElement(
				'div',
				{ className: 'container' },
				'Hello World',
			)
			createRoot(rootElement).render(element)
		</script>
		<script type="module" src="epic_ws.js"></script>
	</body>
</html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions