Sebastian "Sebbie" Silbermann
Sebastian "Sebbie" Silbermann
> Is it ever valid for a hook to be defined as a class method/property? Sure. It's likely unnecessary since a class method implies the method is stateful which would...
`.client.js` and `.server.js` was the convention that was proposed originally but later changed to using `'use client'` and `'use server'` directives instead in https://github.com/reactjs/rfcs/pull/227. [`'use client'` directive](https://react.dev/reference/react/use-client#use-client) and [`'use server'`...
Some components only make sense on the server (e.g. accessing the file system) and need server directives. Most components can be used as both and don't need directives. The linked...
Prior discussion: https://github.com/facebook/react/issues/14357
```js const {propA, propB, rest} = useMemo(() => { const {propA, propB, ...rest} = propsC; return {propA, propB, rest}; }, [propC]); useEffect(() => { // some effect not expected executed...
Thank you for reaching out. What would be involved in creating such a wrapper? Does it make more sense to file a PR and then see how it'll look? We're...
ESLint v9 support will be done in https://github.com/facebook/react/pull/28773
> If you are using eslint-plugin-react `eslint-plugin-react` is not authored by the React team. Please file an issue for this plugin in https://github.com/jsx-eslint/eslint-plugin-react instead. ESLint v9 support is available in...
> Thanks for the PR https://github.com/facebook/react/pull/28773. Do you have an example of how to configure it in a flat config? No, since we haven't worked on supporting flat config yet....
> What's the status? It still doesn't work with the newest nightly build. What's not working? Did you follow https://github.com/facebook/react/issues/28313#issuecomment-2180984628?