chore: update example basic

This commit is contained in:
Pedro Nauck
2018-03-17 01:22:07 -03:00
parent a4127d9a44
commit 9d56d02465
4 changed files with 18 additions and 12 deletions

View File

@@ -6,6 +6,9 @@
"start": "playgrodd start"
},
"dependencies": {
"playgrodd": "0.0.0"
"playgrodd": "^0.0.1"
},
"devDependencies": {
"babel-preset-react": "^6.24.1"
}
}

View File

@@ -0,0 +1,8 @@
/**
* @playgrodd
* @name: Alert
*/
import React from 'react'
export const doc = () => <div>hello</div>

View File

@@ -1,10 +0,0 @@
/**
* @playgrodd
* @name: Button
*/
import React from 'react'
import { doc } from 'playgrodd'
import { Button } from './Button'
doc(() => <Button>Click me</Button>)

View File

@@ -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>