
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
stencil-react
Advanced tools
Check out https://github.com/ionic-team/stencil-ds-plugins. You may want that instead of this.
Generate React Components ("bindings") from Stencil 1.x projects.
Make sure your Stencil v1 component library (e.g, @anjuna/core) is installed as an npm dependency.
npm i stencil-react
stencil-react @anjuna/core --outDir dist
| Option | Description | Default Value |
|---|---|---|
--outDir | Output directory | dist |
--packageJson | Override output package.json fields | N/A |
--packageJsonPath | Override output package.json fields from file | N/A |
You cannot override fields ['main', 'module', 'types', 'peerDependencies', 'dependencies'].
Your output directory will contain:
package.json file with main, module, and types fieldsThe generated NPM package is the original, suffixed with -react.
All your Stencil Components will be exported from the main/module entry file. E.g., if you had a Button component:
import { Button } from '@anjuna/core-react';
Custom properties, custom events, synthentic React events, and aria-attributes are all supported:
import React from 'react';
import ReactDOM from 'react-dom';
const App = (
<Button
context="primary"
anjBlur={(customBlurEvent) => { debugger; }}
onClick={(syntheticReactClickEvent) => { debugger; }}
aria-label="My ARIA Example"
>
Hello World
</Button>
);
ReactDOM.render(<App />, document.body);
FAQs
CLI tool to generate React bindings for Stencil v1 Components
We found that stencil-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.