react-hello-world123333

Simple package to learn how to publish react component into NPM

Usage no npm install needed!

<script type="module">
  import reactHelloWorld123333 from 'https://cdn.skypack.dev/react-hello-world123333';
</script>

README

react amw webpack

Get the AMD module located at react-amw-webpack.js and include it in your project.

Here is a sample integration:

require.config({
  paths: {
    'react': 'vendor/bower_components/react/react',
    'ReactAmwWebpack': 'react-amw-webpack'
  }
});

require(['react', 'ReactAmwWebpack'], function(React, ReactAmwWebpack) {

  React.render(React.createElement(ReactAmwWebpack), document.getElementById('widget-container'));

});

Development

  • Development server npm start.
  • Continuously run tests on file changes npm run watch-test;
  • Run tests: npm test;
  • Build npm run build;