Skip to content
This repository was archived by the owner on Jun 2, 2024. It is now read-only.

Commit 353de31

Browse files
committed
Updated readme
1 parent 9692cc2 commit 353de31

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,14 @@ const Menu = ({ showMenuItems }) => (
5454

5555
## Install
5656

57-
Coming soon...
57+
```
58+
npm install react-semantics
59+
```
5860

5961
## Usage
6062

6163
```javascript
62-
import { ArrayMap, Show } from 'react-semantics';
63-
64-
<ArrayMap
65-
array={[1, 2, 3]}
66-
render={n => <div key={n}>{n}</div>}
67-
/>
64+
import { Show } from 'react-semantics';
6865

6966
<Show when={5 === 2 + 2}>
7067
<div>Will only render in 1984</div>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"typescript": "^2.9.2"
4848
},
4949
"scripts": {
50-
"build": "npm run clean:build && npm run lint && npm run prettify && tsc -p ./tsconfig.build.json && cp ./package.json ./dist/lib",
50+
"build": "npm run clean:build && npm run lint && npm run prettify && npm run test && tsc -p ./tsconfig.build.json && cp ./package.json ./dist/lib",
5151
"clean:build": "rimraf ./dist/lib",
5252
"dist": "cd ./dist/lib && npm publish",
5353
"lint": "tslint -c tslint.json './src/**/*'",

0 commit comments

Comments
 (0)