reactjs / reactjs/react.dev

[Bug]: 'Render React components anywhere on the page' sandbox does not work

オープン
#6,920 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug: unconfirmed
主要言語
JavaScript
スター
11.8k
フォーク
7.9k
平均マージ
1日 11時間
マージ済み PR(30日)
11

説明

Summary

When you go to the relevant sandbox you see that it throws an error in the console. The problem occurs because there are two index.html files in the project. One in the project root directory and the other in the public directory. Simply replacing the one in the public directory with the one in the root directory solves the issue.

Page

https://react.dev/learn/add-react-to-an-existing-project#step-2-render-react-components-anywhere-on-the-page

Details

No response

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

リンクされた CodeSandbox を開き、root index.html と public/index.html を確認してから、想定されるセットアップについてリンクされたドキュメントの手順を読んでください。sandbox で報告されたコンソールエラーが発生しなくなっていること、また例がページ上のどこかで引き続き React コンポーネントをレンダリングしていることを確認してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, react
領域
documentation, web-dev
issue の種類
バグ
難易度
1/5
見積もり時間
1時間未満
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
52/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。