Skip to content

Commit

Permalink
chore: update example basic
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Apr 15, 2018
1 parent a4127d9 commit 9d56d02
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
5 changes: 4 additions & 1 deletion examples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"start": "playgrodd start"
},
"dependencies": {
"playgrodd": "0.0.0"
"playgrodd": "^0.0.1"
},
"devDependencies": {
"babel-preset-react": "^6.24.1"
}
}
8 changes: 8 additions & 0 deletions examples/basic/src/Alert.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @playgrodd
* @name: Alert
*/

import React from 'react'

export const doc = () => <div>hello</div>
10 changes: 0 additions & 10 deletions examples/basic/src/Button.doc.jsx

This file was deleted.

7 changes: 6 additions & 1 deletion examples/basic/src/Button.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* @playgrodd
* @name: Button
*/

import React from 'react'

export const Button = ({ children }) => <button>{children}</button>
export const doc = () => <button>click me</button>

0 comments on commit 9d56d02

Please sign in to comment.