the-component-demo

Live demo of the-components

the-component-demo

Live demo of the-components

Installation

$ npm install the-component-demo --save

Usage

'use strict'

import React from 'react'
import TheComponentDemo from 'the-component-demo'

const TheComponentDemoStyles = TheComponentDemo.styles({})

class ExampleComponent extends React.PureComponent {
  render () {
    return (
      <TheComponentDemo id='my-component'
                   styles={ TheComponentDemoStyles }
      />
    )
  }
}

export default ExampleComponent

Components

TheComponentDemo

Live demo of the-components

Props

Name Type Description Default
className string CSS class name null
pkg object Package json for demo null
snippet string Snippet script null

License

This software is released under the MIT License.

Links

HomePage

https://github.com/the-labo/the-component-demo#readme

Repository

the-labo/the-component-demo


公众号

欢迎 JavaScript 爱好者