react-comfort

2.0.4 • Public • Published

React Comfort

You can find the full documentation on the website

Description

React Comfort is a React library that provides utilities for common programming tasks, that make coding in React easier and cleaner.

Installation

npm install react-comfort

Example

import {If, Else} from 'react-comfort'

const Bar = (props) => {
    return (
        <If condition={props.age >= 18}>
            <h2>🍺🍺🍺</h2>
            <p>Buy alcohol!</p>

            <Else>
                <h2>🚫🚫🚫</h2>
                <p>Sorry, children cannot purchase alcohol!</p>
            </Else>
        </If>
    )
}

Documentation

Contributing

Read our contributing guide to learn about our development process.

Code of Conduct

This project has adopted the Contributor Covenant as its Code of Conduct, and we expect project participants to adhere to it. Please read the full text so that you can understand what actions will and will not be tolerated.

Authors

License

MIT License

Package Sidebar

Install

npm i react-comfort

Weekly Downloads

0

Version

2.0.4

License

MIT

Unpacked Size

18.4 kB

Total Files

14

Last publish

Collaborators

  • ruben_arushanyan