Skip to content

fix: missing react import #421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

krzysztofairlabs
Copy link

When using JSX in React, the import of the said library is required. When one follows the installation documentation step by step -- this error is always inevitable.

@pascalbaljet
Copy link
Member

But React (the import) is not used in the script, right? It's also not imported in the starter kit:
https://github.com/laravel/react-starter-kit/blob/f1c4c46e411b59755c7ec377a34dc41567b2aa1c/resources/js/app.tsx

@pascalbaljet pascalbaljet added documentation Something's missing or wrong in the documentation needs more info/work Needs more info from the author or additional work to get merged labels Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Something's missing or wrong in the documentation needs more info/work Needs more info from the author or additional work to get merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants