0.1.3 • Published 5 years ago

@talesoft/react-css-tools v0.1.3

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

React CSS Tools

Build status Coverage Vulnerabilities

Some loose React CSS helper functions.

Installation

npm i @talesoft/react-css-tools

TypeScript supported out-of-the-box.

Usage

classes(...args)

import { classes } from '@talesoft/react-css-tools';

function MyComponent(props) {
    return <div className={classes('MyComponent', props.active && 'active')}>
        Hello World!
    </div>;
}

Contributing

Before contributing, check out the Contribution Guidelines

Requires: npm

// Pull project
git clone https://github.com/Talesoft/tick-js

// Enter project directory
cd geometry-js

// Install development dependencies
npm install

// ... make your changes ...

// Run tests
npm run test

// Lint
npm run lint

// Fix linting problems
npm run lint:fix

// Build
npm run build

// ... create branch, commit, push, merge request etc. ...