r/reactjs • • 1h ago

Needs Help React 18 → 19, worth it if we don't need any of the new stuff?

0 Upvotes

My team wants to upgrade our app from React 18 to 19 and I'm kind of the only one against it.

It's a client-side SPA (Vite, TS, React Router , Keycloack), no SSR. I went through what 19 adds and honestly I don't see anything we'd use. Actions, useOptimistic, server components, none of that fits how the app works right now. So to me it's a bunch of testing for no real gain.

Their argument is basically "we'll have to do it at some point anyway."

Is there anything I'm missing that would make it worth it?


r/reactjs • • 1h ago

Discussion Three small React habits that cut down my re-render bugs

0 Upvotes

I'm learning React while working full-time, building small projects after work, and these three small habits actually reduced the silly re-render bugs I kept hitting:

  1. Keep state as low as it can live. I used to lift every bit of form state up to the top component and then wonder why everything re-rendered. Moving it down into the component that actually uses it fixed most of it.
  2. Stop wrapping everything in useMemo. Early on I memoised every function and value I could find and the code just got harder to read. Now I only reach for it when I can actually see a slow re-render.
  3. Derive instead of storing a second copy. I used to keep a filtered list in its own state alongside the original list, and they'd drift apart. Computing the filtered list from the state directly means there's nothing to go out of sync.

None of this is advanced — it's just what stopped my own bugs. What small habit did you pick up early that saved you the most debugging time?


r/reactjs • • 6h ago

Upgrading to ESLint 10 with eslint-plugin-react: why it passes locally and fails in CI, and a fix

0 Upvotes

If you've tried ESLint 10 with eslint-plugin-react, jsx-a11y or import, you've probably hit ERESOLVE or getFilename is not a function. None of the three has released ESLint 10 support yet.

What I found:

  • npm install -D eslint@10 in an existing project only warns, so it looks fine. npm ci in CI then fails.
  • The crash comes from settings.react.version: "detect" calling a function ESLint 10 remove

The manual fix is an npm overrides entry per plugin plus wrapping your config in fixupConfigRules from u/eslint/compat (details in the README).

I wrote a CLI that does it and proves your lint output didn't change: npx eslint-unstick --fix.

Repo: https://github.com/Raj-json/eslint-unstick. Feedback from real projects is very welcome, especially where it fails.


r/reactjs • • 1h ago

Show /r/reactjs I built an open-source, Notion-style editor in React that keeps your notes as plain Markdown files

0 Upvotes

Disclosure: this is my own project.

I'm a solo developer and I've spent the last two years building Lydie. It works a lot like Notion (blocks, / commands, databases with table, board and calendar views), but your notes are plain Markdown files in a folder you own.

  • Source (AGPL-3.0): https://github.com/lydiehq/lydie
  • React 19 with the React Compiler, TipTap for the editor, and Electron for the desktop app
  • Every feature is a plugin, including the built-in ones
  • Saving a note only changes the lines you edited, so the rest of the file stays as it was

On AI: I've been a professional developer for more than 5 years, and Lydie started before I used AI tools much. I use Claude with intention and a lot of iteration. Happy to answer technical questions.

I'd love feedback :)