Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@ifaxity/hyper
Advanced tools
A modern hyperscript inspired library with IE9+ support.
Supports JSX and fragments, through this typescript config.
{
"compilerOptions": {
"target": "es5",
"module": "es2015",
"moduleResolution": "node",
"lib": ["es5", "es6", "dom"],
"jsx": "react",
"jsxFactory": "h",
"jsxFragmentFactory": "Fragment",
}
}
And then in you code import the required members
import { h, Fragment, render } = from '@ifaxity/hyper';
function Button(props) {
function onClick() {
console.log('CLICKED');
}
return (
<button onClick={props.onClick || onClick}>{props.children}</button>
);
}
const app = (
<>
<h1>Click the button below</h1>
<Button onClick={() => alert('CLICKED')}>Click me</Button>
</>
);
render(app, '#app');
Thats fine! You can use the tag shorthands (only for the most common tags) or the h factory directly.
import { h, button, render, fragment } = from '@ifaxity/hyper';
function Button(props) {
function onClick() {
console.log('CLICKED');
}
return button({ onClick: props.onClick || onClick }, props.children);
}
const app = fragment(
h('h1#header'),
h(Button, { onClick: () => alert('CLICKED') }, 'Click me')
);
render(app, '#app');
FAQs
A modern hyperscript inspired library with IE9+ support.
The npm package @ifaxity/hyper receives a total of 7 weekly downloads. As such, @ifaxity/hyper popularity was classified as not popular.
We found that @ifaxity/hyper 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.