Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@fluentui/state
Advanced tools
A set of utils to create framework agnostic and reusable state managers
@fluentui/state
A set of utils to create framework agnostic and reusable state managers.
NPM
npm install --save @fluentui/state
Yarn
yarn add @fluentui/state
import { createManager, ManagerFactory } from '@fluentui/state';
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 manager = createInputManager({ state: { value: 'Hello world!' } });
We provide React bindings under @fluentui/react-bindings
.
FAQs
A set of utils to create framework agnostic and reusable state managers
The npm package @fluentui/state receives a total of 8,743 weekly downloads. As such, @fluentui/state popularity was classified as popular.
We found that @fluentui/state demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 12 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.