Skip to content
This repository was archived by the owner on Jun 17, 2020. It is now read-only.

Latest commit

 

History

History
42 lines (35 loc) · 1.47 KB

File metadata and controls

42 lines (35 loc) · 1.47 KB

react-component-template

Description

Describe the component here

Installation

npm install @opuscapita/react-component-template

Demo

View the DEMO

Builds

UMD

The default build with compiled styles in the .js file. Also minified version available in the lib/umd directory.

CommonJS/ES Module

You need to configure your module loader to use cjs or es fields of the package.json to use these module types. Also you need to configure sass loader, since all the styles are in sass format.

API

Prop name Type Default Description
propName string Describe the prop here

Code example

import React from 'react';
import { Example } from '@opuscapita/react-component-example';

export default class ReactView extends React.Component {
  render() {
    return (
      <Example
        propName="propValue"
      />
    );
  }
}