0.0.5 • Published 4 years ago

@opnay/react-classed v0.0.5

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

classed

Install

npm install --save @opnay/react-classed
npm install --registry https://npm.pkg.github.com/ --save @opnay/react-classed

yarn add @opnay/react-classed
yarn add --registry https://npm.pkg.github.com/ @opnay/react-classed

Usage

import * as React from 'react';

import { ClassedRef } from '@opnay/react-classed';

// this select query as `span.accent`
const Accent = ClassedRef('Accent', 'accent', 'span');

class Example extends React.Component {
  render() {
    return (
      <p>
        This is <Accent>accent</Accent>
      </p>
    );
  }
}

License

Apache License 2.0 © OPNay

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago