zf-hello
v1.0.4
Published
Renders a button, which show "Hello, {name}!" when clicked.
Downloads
9
Readme
zf-hello
A react component, which reveal secret about your age..
Install
npm install --save zf-hello
Usage
import React, { Component } from 'react'
import { ZFHello } from 'zf-hello'
class Example extends Component {
onClickStart = () => {
// do something
}
onClickEnd = () => {
// do something
}
render () {
const textStyle = {
color: "red"
};
const buttonStyle = {
color: "white",
backgroundColor: "blue"
};
const configuration = {
api: 'localhost:3000/test'
}
const data = {
name: 'Hippo',
age: 24,
textStyle,
buttonStyle,
onClickStart: this.onClickStart,
onClickEnd: this.onClickEnd
}
return (
<ZFHello configuration={configuration} data={data} />
)
}
}
License
MIT © Hippo