react2wc
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

react2wc

Build Status

A CLI tool to quickly transform react component to native web components.

Installation

npm i --save-dev react2wc

or

yarn add -D react2wc

Quick Start

Write your react components as usual and transform them using react2wc:

react2wc build src/lib/hello-world/hello-world.tsx

react2wc will transform your react component to a web component and save it in the same directory with the filename hello-world.react2wc.ts.

Help

Use the react2wc help command for more information:

react2wc [subcommand] -h

or

react2wc help [subcommand]
$ react2wc -h
Usage: react2wc [options] [command]

CLI to convert react component to native web components

Options:
  -V, --version    output the version number
  -h, --help       display help for command

Commands:
  build <file...>  Creates web components for given react components
  help [command]   display help for command

Additional documentation

Support

The current version of react2wc is fully supported on Long Term Support versions of Node.js, and requires at least v14.17.0.

For issues and feature requests use the project Issues page on GitHub.

Package Sidebar

Install

npm i react2wc

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

17.8 kB

Total Files

22

Last publish

Collaborators

  • oberpierre