Skip to content
This repository was archived by the owner on Apr 1, 2023. It is now read-only.
This repository was archived by the owner on Apr 1, 2023. It is now read-only.

ReferenceError: Fragment is not defined #243

Closed
@rpelorosso

Description

@rpelorosso

Hi!

I created a new library, and made a quick edit to add a fragment to the example code. The new code is:

export const ExampleComponent = ({ text }) => {
   return (<><p>test</p><div className={styles.test}>Example Component: {text}</div></>)
}

When running this I get the error from the title:

ReferenceError: Fragment is not defined
ExampleComponent
src/index.js:5

Is there any way to add support for it?

Thank you !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions