Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Skate is a library built on top of the W3C web component specs that enables you to write functional and performant web components with a very small footprint.
Skate is high level, functional abstraction over the web component specs that:
props
, such as attribute reflection and coercionnpm install skatejs
To use Skate with a renderer, you'll want to install one of them:
npm install skatejs @skatejs/renderer-[renderer]
Where [renderer]
is one of:
HTML
<x-hello name="Bob"></x-hello>
JavaScript (using the Preact renderer)
/** @jsx h */
import { props, withComponent } from 'skatejs';
import withPreact from '@skatejs/renderer-preact';
import { h } from 'preact';
const Component = withComponent(withPreact());
customElements.define('x-hello', class extends Component {
static props = {
name: props.string
}
renderCallback ({ name }) {
return <span>Hello, {name}!</span>;
}
});
Result
<x-hello name="Bob">
#shadow-root
<span>Hello, Bob!</span>
</x-hello>
Whenever you change the name
property - or attribute - the component will re-render, only changing the part of the DOM that requires updating.
Skate uses both Custom Elements and Shadow DOM, but is capable of operating without Shadow DOM, you just don't get any encapsulation.
For more information on the polyfills, see their docs.
Skate supports all evergreens and IE11, and is subject to the browser support matrix of the polyfills.
Support us with a monthly donation and help us continue our activities. [Become a backer]
Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]
FAQs
Skate is a library built on top of the W3C web component specs that enables you to write functional and performant web components with a very small footprint.
The npm package skatejs receives a total of 2,274 weekly downloads. As such, skatejs popularity was classified as popular.
We found that skatejs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers 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
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.