Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
babel-plugin-react-hyperscript-require
Advanced tools
Babel plugin that adds react-hyperscript import declaration
Babel plugin that adds react-hyperscript import declaration
(this repo was cloned from styled-components-require and modified to be used with react-hyperscript)
Your component.js
that contains this code:
const Component = h('div', 'hello world');
export default Component;
will be transpiled to:
import h from 'react-hyperscript';
const Component = h('div', 'hello world');
export default Component;
npm install babel-plugin-react-hyperscript-require --save-dev
Add react-hyperscript-require
into .babelrc
{
"plugins": [
"react-hyperscript-require"
]
}
â add import statement if h()
is present
â do not add when no h in use
â do not add import react-hyperscript twice
â do not add if it already imported
:star: this repo
MIT © mciparelli
FAQs
Babel plugin that adds react-hyperscript import declaration
We found that babel-plugin-react-hyperscript-require 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's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.