js-universal-module

js-universal-module React component

Usage no npm install needed!

<script type="module">
  import jsUniversalModule from 'https://cdn.skypack.dev/js-universal-module';
</script>

README

js-universal-module

npm package Nevermind this package, it's only for testing but in short it is an universal js module that can be imported into other projects using a <script>

Usage

  1. Check what is the latest version here: https://www.npmjs.com/package/js-universal-module
  2. Change this link to use the latest version https://unpkg.com/js-universal-module@1.1.2/umd/js-universal-module.js
  3. Include the script tag in your html. You can use async aswell.
<script async defer src="https://unpkg.com/js-universal-module@1.1.2/umd/js-universal-module.js"></script>
  1. In your other code you can access the module with UMDComponent.

Props you can pass in

{
    "person": "Arnas",
    "message": "How are you?"
}