Skip to content

josealvesmacieljunior/react-classed

 
 

Repository files navigation

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

About

React Create Classed Element Component

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • TypeScript 57.3%
  • HTML 24.0%
  • JavaScript 10.8%
  • CSS 7.9%