Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 18, 2023

Bumps @types/react-dom from 18.2.8 to 18.2.18.

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Dec 18, 2023
@kimkim0814 kimkim0814 self-requested a review December 21, 2023 06:00
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/types/react-dom-18.2.18 branch 2 times, most recently from 640b39a to c875602 Compare December 25, 2023 02:58
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 18.2.8 to 18.2.18.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

---
updated-dependencies:
- dependency-name: "@types/react-dom"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/types/react-dom-18.2.18 branch from c875602 to 424105c Compare December 25, 2023 04:27
@kimkim0814
Copy link
Member

react-domとは?

Reactライブラリの一部であり、アプリのトップレベルで使うための DOM 特有のメソッドを提供している。
クライアント専用モジュールと、サーバー専用モジュールがありQiita Cliでは
クライアント専用モジュールが使用されている。

src/client/index.tsx

import { createRoot } from "react-dom/client";
import { App } from "./components/App";

const container = document.getElementById("app");
if (!container) {
  throw new Error("`#app` is not found");
}
const root = createRoot(container);
root.render(<App />);

ref:https://ja.legacy.reactjs.org/docs/react-dom.html

Copy link
Member

@kimkim0814 kimkim0814 left a comment

Choose a reason for hiding this comment

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

@kimkim0814 の開発環境で問題なく、プレビュー画面が表示されることも確認

LGTM!

@kimkim0814 kimkim0814 requested review from a team and ohakutsu and removed request for a team January 15, 2024 06:04
@kimkim0814
Copy link
Member

@types とは

ReactとTypeScriptを一緒に使用する際の、型定義ファイルが入ったパッケージのこと。

@types/react-domとは

#86 (comment) で調べたreact-domのTypeScriptの型定義を提供するものになる。

つまり、TypeScriptで開発を行う際にJavascriptライブラリを使用したい場合は@typesを用いれば
型定義が使用できるようになる。

@kimkim0814
Copy link
Member

@types/*を更新する際に確認する事項

  • @types/*のバージョンがサポートするTypeScriptの最小バージョンを確認し、必要に応じてTypeScriptをアップデート
  • その他の依存関係の確認
  • アプリケーションのビルド

@kimkim0814 kimkim0814 merged commit c8e296e into main Jan 16, 2024
@kimkim0814 kimkim0814 deleted the dependabot/npm_and_yarn/types/react-dom-18.2.18 branch January 16, 2024 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants