![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
hooks-composer
Advanced tools
Tiny Javascript composition over React Hooks ( React > 16.7.0 ). Yet another way to create your hooks :)
import React from 'react'
export default function Test(props) {
const [name, setName] = React.useState('Mary')
const [surname, setSurname] = React.useState('Poppins')
const [language, setLanguage] = React.useState('🇬🇧')
}
import React from 'react'
import useHooksComposer from 'hooks-composer'
export default function Test(props) {
const { name, surname, language, setName, setSurname, setLanguage } = useHooksComposer({
name: 'Mary',
surname: 'Poppins',
language: '🇬🇧'
})
}
Instead of creating your hooks line by line and defining the pairs for value and its setter, you can pass a static object, where each key is the name of your hook variable and the value is the initial value of the hook. The composer will create an independent hook for each key and will return an object with all values and setters named according to the convention.
Example:
import React from 'react'
import useHooksComposer from 'hooks-composer'
export function Test(props) {
const { count, setCount } = useHooksComposer({ count: 0 })
}
npm i hooks-composer or yarn add hooks-composer
Made with ♥ by nudelx
FAQs
yet another way to create your react hooks
The npm package hooks-composer receives a total of 1 weekly downloads. As such, hooks-composer popularity was classified as not popular.
We found that hooks-composer 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.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.