
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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
The npm package babel-plugin-react-hyperscript-require receives a total of 1 weekly downloads. As such, babel-plugin-react-hyperscript-require popularity was classified as not popular.
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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.