react-hooks
react-hooks copied to clipboard
React Custom Hooks for NodeCG
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4. Release notes Sourced from word-wrap's releases. 1.2.4 What's Changed Remove default indent by @mohd-akram in jonschlinkert/word-wrap#24 🔒fix: CVE 2023 26115 (2) by @OlafConijn in...
Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2. Release notes Sourced from semver's releases. v5.7.2 5.7.2 (2023-07-10) Bug Fixes 2f8fd41 #585 better handling of whitespace (#585) (@joaomoreno, @lukekarrys) Changelog Sourced from semver's...
Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.1.2 to 4.1.3. Release notes Sourced from tough-cookie's releases. 4.1.3 Security fix for Prototype Pollution discovery in #282. This is a minor release, although output from the...
`useSomething` is a conventional name for hooks, but it's not ideal for npm package names because of vagueness. There are number of options but I'm leaning to `@nodecg/react-hooks`
This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more. ## Pending Approval These branches will be created by Renovate only once you click...
An example with `useState` and `useReplicant`: ```js const [data, setData] = React.useState(0); setData(previousData => previousData + 1); const [replicant, setReplicant] = useReplicant(0); setReplicant(previousData => previousData + 1); // this is...
react-testing-library has been moved to `@testing-library/react`. ref: #21
There is `useListenFor` hook but it's really a basic hook that only registers a callback to `nodecg.listenFor`. It would be nice to receive feedback and use cases so it can...
```ts const counterRep = nodecg.Replicant('counter'); const Counter: React.FunctionComponent = () => { const [count, updateCount] = useNewHookName(counterRep, null); // ... }; ```
Bumps the npm_and_yarn group with 10 updates in the / directory: | Package | From | To | | --- | --- | --- | | [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) | `7.20.5` |...