
Security News
Node.js Drops Bug Bounty Rewards After Funding Dries Up
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.
@haskellian/react
Advanced tools
Haskellian for React
import { useRefState } from '@haskellian/react'
function Component() {
const [state, setState, ref] = useRefState(0)
}
import { useNotifiedState } from '@haskellian/react'
function Component() {
const [state, setState] = useNotifiedState(0)
async function update() {
await setState(x => x + 1)
}
}
import { useInterval } from '@haskellian/react'
function Component() {
const { playing, setPlaying } = useInterval((stop) => {
console.log('Running interval!')
if (...)
stop()
}, { autoplay: false, delaySecs: 0.5 })
return playing
? <button onClick={() => setPlaying(false)}>Pause</button>
: <button onClick={() => setPlaying(true)}>Play</button>
}
import { cancellableRequests } from '@haskellian/react'
const reqs = cancellableRequests({ delaySecs: 10 })
async function request(id) {
const ok = await reqs.schedule(id)
if (ok)
fetch(id)
}
request(id)
request(id) // first one gets cancelled, second executed after `delaySecs`
// or, you can cancel them manually using:
reqs.cancel(id)
useKeysimport { useKeys } from '@haskellian/react'
function Component() {
useKeys(['a', 'A'], () => console.log('Turning left!'))
useKeys(['d', 'D'], () => console.log('Turning right!'))
}
import { useRotation } from '@haskellian/react'
function Component() {
const {
rotation, rotate,
clockwiseDegrees // for CSS; poor guy doesn't know how angles work
} = useRotation()
rotate(-90) // set angle to -90
rotate('left') // 90 degs to the left
rotation // actual angle, in degrees (counter-clockwise 0 | 90 | 180 | -90)
return <img src='...' style={{ transform: `rotate(${clockwiseDegrees})`}} />
}
useSplitPathimport { useSplitPath } from '@haskellian/react/router'
function Parent() {
return useRoutes([{
path: '/nested/path/*',
element: <Nested />
}])
}
function Nested() {
const [pre, post] = useSplitPath() // ['/nested/path', '/children/path']
return useRoutes([{
path: '*',
element: <Navigate to='children/path' />
}])
}
useRerouteLike useNavigate but preserves query parameters and hash
withParamimport { withParam } from '@haskellian/react/router'
function MyComponent({ id }) {
// ...
}
const BoundComponent = withParam('id', MyComponent)
<Route path=':id' element={<BoundComponent />}>
FAQs
Haskellian for React
We found that @haskellian/react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.