generic-react-components
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i generic-react-components

Weekly Downloads

4

Version

0.1.1

License

MIT

Unpacked Size

12.8 kB

Total Files

16

Last publish

Collaborators

  • fraud