@opnay/react-classed
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @opnay/react-classed

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

22.1 kB

Total Files

14

Last publish

Collaborators

  • opnay