🤖Wrapper for React
Atomico allows distributing webcomponnets with extended react support, automatically creating wrappers for each component and import paths for react.
For this to be possible you must follow the following rules.
Rules
1. The file that declares the customElement must export the customElement.
2. Compile your components using your favorite bundle tool.
3. Point via expressions to the files generated by your bundle tool
The result of this process will be:
The association of exports for React inside the package.json
The creation of the files of use for React, if the component is created with Atomico adds support to types.
Example
Last updated