Skip to content

Commit

Permalink
reference unpkg.com in <script> usage of Getting Started
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinAst committed Apr 11, 2017
1 parent 754000a commit 8d180e6
Showing 1 changed file with 48 additions and 48 deletions.
96 changes: 48 additions & 48 deletions docs/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,55 +13,55 @@ All functions are exposed through [UMD](https://github.com/umdjs/umd),
and therefore accessable through any one of the following techniques ...


### ES6 Import (Native JS)

```js
import { reducerHash, joinReducers } from 'astx-redux-util';
-OR-
import * as AstxReduxUtil from 'astx-redux-util';
-OR-
import AstxReduxUtil from 'astx-redux-util';

reducerHash(...)
joinReducers(...)
-OR-
AstxReduxUtil.reducerHash(...)
AstxReduxUtil.joinReducers(...)
```


### CommonJS

```js
const { reducerHash, joinReducers } = require('astx-redux-util');
-OR-
const AstxReduxUtil = require('astx-redux-util');

reducerHash(...)
joinReducers(...)
-OR-
AstxReduxUtil.reducerHash(...)
AstxReduxUtil.joinReducers(...)
```


### AMD

```js
define(['astx-redux-util', 'otherModule'], function(AstxReduxUtil, otherModule) {
- **ES6 Import (Native JS)**

```js
import { reducerHash, joinReducers } from 'astx-redux-util';
-OR-
import * as AstxReduxUtil from 'astx-redux-util';
-OR-
import AstxReduxUtil from 'astx-redux-util';

reducerHash(...)
joinReducers(...)
-OR-
AstxReduxUtil.reducerHash(...)
AstxReduxUtil.joinReducers(...)
});
```


### &lt;script&gt; tag

```
<script src="astx-redux-util.js"></script>
<script>
```


- **CommonJS**

```js
const { reducerHash, joinReducers } = require('astx-redux-util');
-OR-
const AstxReduxUtil = require('astx-redux-util');

reducerHash(...)
joinReducers(...)
-OR-
AstxReduxUtil.reducerHash(...)
AstxReduxUtil.joinReducers(...)
</script>
```
```


- **AMD**

```js
define(['astx-redux-util', 'otherModule'], function(AstxReduxUtil, otherModule) {
AstxReduxUtil.reducerHash(...)
AstxReduxUtil.joinReducers(...)
});
```


- **&lt;script&gt; tag**

```
<script src="https://unpkg.com/astx-redux-util/dist/astx-redux-util.min.js"></script>
<script>
AstxReduxUtil.reducerHash(...)
AstxReduxUtil.joinReducers(...)
</script>
```

0 comments on commit 8d180e6

Please sign in to comment.