Installations
npm install react-hyperscript
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
9.3.0
NPM Version
5.6.0
Score
69.9
Supply Chain
81.5
Quality
75.4
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
mlmorg
Download Statistics
Total Downloads
526,172
Last Day
172
Last Week
648
Last Month
2,793
Last Year
45,258
GitHub Statistics
710 Stars
65 Commits
45 Forks
20 Watching
3 Branches
7 Contributors
Package Meta Information
Latest Version
3.2.0
Package Id
react-hyperscript@3.2.0
Size
4.50 kB
NPM Version
5.6.0
Node Version
9.3.0
Publised On
24 Feb 2018
Total Downloads
Cumulative downloads
Total Downloads
526,172
Last day
-7%
172
Compared to previous day
Last week
-21.3%
648
Compared to previous week
Last month
16.2%
2,793
Compared to previous month
Last year
5.1%
45,258
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Peer Dependencies
1
react-hyperscript
Hyperscript syntax for React.js markup.
Usage
1var h = require('react-hyperscript'); 2var React = require('react'); 3 4var AnotherComponent = require('./another-component'); 5 6module.exports = React.createClass({ 7 render: function render() { 8 return ( 9 h('div.example', [ 10 h('h1#heading', 'This is hyperscript'), 11 h('h2', 'creating React.js markup'), 12 h(AnotherComponent, {foo: 'bar'}, [ 13 h('li', [ 14 h('a', {href: 'http://whatever.com'}, 'One list item') 15 ]), 16 h('li', 'Another list item') 17 ]) 18 ]) 19 ); 20 } 21});
Documentation
If you're using React 0.11, use react-hyperscript 1.x.x. For later versions, use react-hyperscript 2.x.x.
Object.assign is used in this library and is not poly-filled.
h(componentOrTag, properties, children)
Returns a React element.
- componentOrTag
Object|String
- Can be a React component OR tag string with optional css class names/id in the formath1#some-id.foo.bar
. If a tag string, it will parse out the tag name and change theid
andclassName
properties of theproperties
object. - properties
Object
(optional) - An object containing the properties you'd like to set on the element. - children
Array|String
(optional) - An array ofh()
children or a string. This will create child elements or a text node, respectively. - listOfElements
Array
- An array of React elements that will be wrapped withReact.Fragment
.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 8/25 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 16 are checked with a SAST tool
Reason
28 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h
- Warn: Project is vulnerable to: GHSA-4hpf-3wq7-5rpr
- Warn: Project is vulnerable to: GHSA-f522-ffg8-j8r6
- Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546
- Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx
- Warn: Project is vulnerable to: GHSA-282f-qqgm-c34q
- Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695
- Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm
- Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574
- Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-mvjj-gqq2-p4hw
- Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6
- Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj
- Warn: Project is vulnerable to: GHSA-w5p7-h5w8-2hfq
- Warn: Project is vulnerable to: GHSA-662x-fhqg-9p8v
- Warn: Project is vulnerable to: GHSA-394c-5j6w-4xmx
- Warn: Project is vulnerable to: GHSA-78cj-fxph-m83p
- Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3
Score
2.1
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreOther packages similar to react-hyperscript
@types/react-hyperscript
TypeScript definitions for react-hyperscript
estree-util-build-jsx
Transform JSX in estrees to function calls (for react, preact, and most hyperscript interfaces)
react-script
Elegant DSL for React
react-hyperscript-helpers
Terse syntax for hyperscript using react