
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
@stardust-ui/react-bindings
Advanced tools
A set of components and hooks to build components libraries and UI kits.
@stardust-ui/react-bindingsA set of reusable components and hooks to build component libraries and UI kits.
NPM
npm install --save @stardust-ui/react-bindings
Yarn
yarn add @stardust-ui/react-bindings
useStateManager()A React hook that provides bindings for state managers.
The examples below assume a component called <Counter> will be used this way:
import { useStateManager } from '@stardust-ui/react-bindings'
import { createManager, ManagerFactory } from '@stardust-ui/state'
type InputProps = { value?: string, defaultValue?: string, onChange: (value: string) => void }
type InputState = { value: string }
type InputActions = { change: (value: string) => void }
const createInputManager: ManagerFactory<InputState, InputActions> = config =>
createManager<InputState, InputActions>({
...config,
actions: {
change: (value: string) => () => ({ value }),
},
state: { value: '', ...config.state, },
})
const Input: React.FC<InputProps> = () => {
const [state, actions] = useStateManager(createToggleManager, props, ['open'])
return <input onChange={e => {
actions.change(e.target.value)
if (props.onChange) onChange(e.target.value)
}} value={state.value} />
}
const [state, actions] = useStateManager(createToggleManager, props, ['open'])
const [state, actions] = useStateManager(
managerFactory: ManagerFactory<State, Actions>,
props: Props,
autoControlledProps: (keyof Props)[] = [],
)
managerFactory - a factory that implements state manager APIprops - all component propsautoControlledProps - optional and is required only if your component implements controlled mode.FAQs
A set of components and hooks to build components libraries and UI kits.
The npm package @stardust-ui/react-bindings receives a total of 22 weekly downloads. As such, @stardust-ui/react-bindings popularity was classified as not popular.
We found that @stardust-ui/react-bindings demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.