
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
react-custom-element-connector
Advanced tools
A simple connector for custom elements that are used in react applications
A simple wrapper that allows you to wrap custom elements in reactjs.
npm install react-custom-element-connector
Say you have a custom element hello-world created via pure-lib with a prop whoIsThere and an event knockknock that's triggered when clicked.
const who = "me";
return html`<hello-world
.whoIsThere=${who}
@knockknock=${e => console.log(e.detail)}
></hello-world>`
This element can be used like this:
const who = "me";
<CustomElement
tag="hello-world"
whoIsThere={who}
knockknock={console.log}
/>
The wrapper will take care to:
camelCase attributes to dashed, as react doesn't support camelCase for attributes (this will only work if your framework supports that. @angular/elements and pure-lit do this out of the box, lit will need manual work)FAQs
A simple connector for custom elements that are used in react applications
The npm package react-custom-element-connector receives a total of 0 weekly downloads. As such, react-custom-element-connector popularity was classified as not popular.
We found that react-custom-element-connector 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.