Skip to content

Update v2 20261021 - #297

Merged
tsmd merged 19 commits into
mainfrom
update-v2-20261021
Oct 21, 2026
Merged

tsmd merged 19 commits into
mainfrom
update-v2-20261021

Conversation

@tsmd

@tsmd tsmd commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

更新内容

チェックリスト

以下のチェックリストにすべてチェックが入っていることを確認してからマージしてください

  • マージ先のブランチが main ブランチになっていますか?
  • Storybook が正常に起動することを確認しましたか?
  • CI テストは成功していますか?
  • すべての更新がコミットされていますか?

リリース前にすること

tsmd and others added 16 commits October 15, 2026 15:24
Bump react, react-dom, @types/react and @types/react-dom to v19.
Fix the type errors introduced by the React 19 types:

- import JSX from react (the global JSX namespace is removed)
- type hook refs as RefObject<T | null>, which is what
  useRef<T>(null) now returns
- give Slot's isValidElement a props type (ReactElement props
  now default to unknown)
React 19 passes ref to function components as a regular prop,
and forwardRef will be deprecated in a future release. Every
component already spreads rest onto the element that received
the ref, so dropping forwardRef is enough. Heading keeps its
HTMLElement ref type with a cast because it renders either
hgroup or div.

Also use popoverTarget in the LanguageSelector story, which
React 19 recognizes as a DOM property.
Update the tech stack to React 19 in README, getting-started
and AGENTS.md. Add docs/using-with-react-v18.md describing the
changes needed on React 18 (forwardRef, hook ref types,
popovertarget) and link it from README and Storybook. Add React
version rules to component-rules.
@tsmd
tsmd requested a review from a team as a code owner October 20, 2026 08:09
@tsmd
tsmd requested review from johnykei and monoharada October 20, 2026 08:09

@johnykei johnykei left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM👍

@tsmd
tsmd merged commit e637c68 into main Oct 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants