Skip to content

Sandpack examples with index.html files throw runtime errors #6487

Closed
@LookRain

Description

@LookRain
  1. https://react.dev/learn/add-react-to-an-existing-project#step-2-render-react-components-anywhere-on-the-page
image 2. https://react.dev/reference/react-dom/createPortal#rendering-react-components-into-non-react-server-markup image

The issue seems to be because the index.html files defined in these examples are not used, instead, the public/index.html defined in the template are used

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions