Gathering detailed insights and metrics for preact-classless-component
Gathering detailed insights and metrics for preact-classless-component
Gathering detailed insights and metrics for preact-classless-component
Gathering detailed insights and metrics for preact-classless-component
A utility method to create preact components without using class keyword
npm install preact-classless-component
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
44 Stars
37 Commits
6 Forks
2 Watchers
13 Branches
4 Contributors
Updated on Jul 25, 2023
Latest Version
2.0.0
Package Id
preact-classless-component@2.0.0
Size
2.82 kB
NPM Version
6.4.1
Node Version
10.15.1
Published on
Apr 29, 2019
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
If you use the Preact library, but don't want to use the class
syntax because you've read articles by Eric Elliott and others that have lead you to favour object composition over class inheritance, then this utility is for you.
$ npm install --save preact-classless-component
1/* ES6 Modules */ 2 3import createComponent from 'preact-classless-component'; 4 5/* CommonJS */ 6 7const createComponent = require('preact-classless-component'); 8 9const Component = createComponent({ 10 render(props, state) { 11 return ( 12 <div> 13 Hello world! 14 </div> 15 ); 16 } 17}); 18
Thanks to Jason Miller for his help on debugging this function.
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 4/24 approved changesets -- score normalized to 1
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
67 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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 More