Skip to content

Commit ff7e4fb

Browse files
committed
change README.md
1 parent 4bfea4d commit ff7e4fb

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ $ npm install react-lightning-design-system
1616

1717
```javascript
1818
import React from 'react';
19+
import ReactDOM from 'react-dom';
1920
import { Button } from 'react-lightning-design-system';
2021

2122
function click() { alert('Clicked'); }
2223

23-
React.render(
24+
ReactDOM.render(
2425
<div>
2526
<Button onClick={ click }>Simple</Button>
2627
<Button type='neutral' onClick={ click }>Neutral</Button>
@@ -35,13 +36,11 @@ React.render(
3536
See more examples in [examples](https://github.com/mashmatrix/react-lightning-design-system/tree/master/stories) directory.
3637

3738

38-
## Running examples locally
39+
## Running example stories locally
3940

40-
This repo ships with a simple Express app which serves up examples of the components on ```http://localhost:3000```. To get that running follow these steps:
41+
This repo ships with a react storybook based story scripts.
42+
To run stories and get component examples, follow these steps:
4143

42-
1. run ```npm install``` and ```npm run build``` in this repo's root directory.
43-
2. ```cd examples```
44-
3. In the examples directory run:
45-
* ```npm install```
46-
* ```npm start```
47-
4. Find the examples running on [localhost:3000](http://localhost:3000).
44+
1. run ```npm install```
45+
2. run ```npm run storybook```
46+
3. Find the stories running on [localhost:9001](http://localhost:9001).

0 commit comments

Comments
 (0)