1.0.4 • Published 6 years ago

zf-hello v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

zf-hello

A react component, which reveal secret about your age..

NPM JavaScript Style Guide

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

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago