O hirunewani blog

Frontend Weekly 2024-11-29

Created at

React Router v7、TypeScript 5.7、Node.js v22 on Vercel、State of HTML 2024、React Scanなどについて

React Router v7

React Router v7がリリース。

https://remix.run/blog/react-router-v7

React Router v6からのアップグレードガイドラインが公開されている。最新のReact Router v6であれば、フラグを順番に有効化していくことで段階的な移行が可能。

パスの記述方法の一部変更や、useTransitionを利用したルーターの状態更新、必要なパッケージがreact-router-domからreact-routerへ移行などの変更が含まれている。

https://reactrouter.com/upgrading/v6

またRemixのメジャーアップデートでもあるため、Remix v2からのアップグレードガイドラインも公開されている。

https://reactrouter.com/upgrading/remix

TypeScript 5.7

TypeScript 5.7がリリース。

https://devblogs.microsoft.com/typescript/announcing-typescript-5-7/

初期化されていない変数のチェックや、 es2024のサポートなど。

Node.js v22 on Vercel

Node.js 22 LTSがVercelで利用可能になった。

https://vercel.com/changelog/node-js-22-lts-is-now-available

State of HTML 2024

State of HTML 2024の結果が公開。

https://2024.stateofhtml.com/en-US/

React Scan

Million Lintの開発しているReact Scanが話題になっていた。

https://github.com/aidenybai/react-scan

次のコマンドで簡単に試すことができる。

npx react-scan@latest http://localhost:3000