react-comfort
v2.0.4
Published
React Comfort is a React library that provides utilities for common programming tasks, that make coding in React easier and cleaner.
Downloads
2
Maintainers
Readme
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
Introduction
Components
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.