Component generator customization, capable of creating React components with a number of different style flavors
npm install @teleporthq/teleport-component-generator-reactComponent generator customization, capable of creating React components with a number of different style flavors.
> This package is part of the teleport ecosystem. For a complete guide, check out the official documentation.
bash
npm install @teleporthq/teleport-component-generator-react
`
or
`bash
yarn add @teleporthq/teleport-component-generator-react
`Usage
`javascript
import { createReactComponentGenerator, ReactStyleVariation } from '@teleporthq/teleport-component-generator-react'// other style options: "CSS", "InlineStyles", "StyledComponents", "StyledJSX", "ReactJSS"
const reactGenerator = createReactComponentGenerator(ReactStyleVariation.CSSModules)
const result = await reactGenerator.generateComponent(uidl)
``