Using npm:
$ npm install --save swiss-react
Then with a module bundler like webpack, use as you would anything else:
// using ES6 modules
import { element, addGlobalStyles, addConstants, addPlugin } from 'swiss-react';
// using CommonJS modules
var element = require('swiss-react').element;
var addGlobalStyles = require('swiss-react').addGlobalStyles;
var addConstants = require('swiss-react').addConstants;
var addPlugin = require('swiss-react').addPlugin;
The UMD build is also available on unpkg:
<script src="https://unpkg.com/swiss-react/dist/umd/swiss.min.js"></script>
You can find the library on window.Swiss
.
http://swiss-react.com/docs/getting-started
Original: Simple Test
Props: Props Test