react-bulma-components
react-bulma-components copied to clipboard
[HELP] compile for browser only
Hi possible to compile for browser only ( es5 or umd ) , for non nodejs project
Can you explain a little what you mean? Like being able to add the scripts directly on your html?
yeah to be able to be call using without webpack, like react.js itself we can call in html directly.
Can you provide a code example on how are you using react component with that setup? Thanks
In react if you use browser only ( non nodejs ) you just import in the header directly
<html>
<head>
<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
<script type="text/javascript" src="/index.js"></script>
</head>
<body>
<div id="root" ></div>
</body>
</html>
index.js
ReactDOM.createRoot(document.getElementById("root")).render(<h1>Hello World</h1>);
Perhaps you can include the final min.js or js in dist folder