
Research
/Security News
Shai Hulud Strikes Again (v2)
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.
storeon-solidjs
Advanced tools
Solid.js a declarative, efficient, and flexible JavaScript library for building user interfaces. storeon-solidjs package helps to connect store with Solid.js to provide a better performance and developer experience while remaining so tiny.
npm install -S storeon-solidjs
or
yarn add storeon-solidjs
Create store using storeon module:
store.jsimport { createStoreon } from 'storeon'
let counter = store => {
store.on('@init', () => ({ count: 0 }))
store.on('inc', ({ count }) => ({ count: count + 1 }))
}
export const store = createStoreon([counter])
main.jsProvide store using StoreonProvider from storeon-solidjs:
import { render } from 'solid-js/dom'
import { StoreonProvider } from 'storeon-solidjs'
import { store } from './store'
render(
<StoreonProvider store={store}>
<App />
</StoreonProvider>,
document.body
)
Import useStoreon decorator from storeon-solidjs:
Counter.jsximport { useStoreon } from 'storeon-solidjs'
export default function Counter() {
const [state, dispatch] = useStoreon()
return (
<div>
{state.count}
<button onClick={() => dispatch('inc')}>inc</button>
</div>
)
}
Counter.tsximport { useStoreon } from 'storeon-solidjs'
import { State, Events } from './store'
export default function Counter() {
const [state, dispatch] = useStoreon<State, Events>()
return (
<div>
{state.count}
<button onClick={() => dispatch('inc')}>inc</button>
</div>
)
}
FAQs
A tiny connector for Storeon and Solid.js
We found that storeon-solidjs 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.

Research
/Security News
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.