0.1.1 • Published 4 years ago

generic-react-components v0.1.1

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

generic-react-components

Generic React Components that I use a lot.

NPM JavaScript Style Guide

Install

npm install --save generic-react-components

Or

yarn add --dev generic-react-components

Usage

import React, { Component } from 'react'

import EitherView from 'generic-react-components'

class Example extends Component {
  render() {
    return (
      <EitherView
        predicate={() => true}
        childrenA={<View>This?</View>}
        childrenB={<View>Or that?</View>}
      />
    )
  }
}

License

MIT © hbina

generic-react-components

0.1.1

4 years ago

0.1.0

4 years ago

0.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago