Skip to content
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

Documentation updates for migrating from CRA to Vite #70

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ammaaraslam
Copy link
Member

No description provided.

@netlify
Copy link

netlify bot commented Jul 23, 2023

Deploy Preview for react-play-docs ready!

Name Link
🔨 Latest commit 2af9ff0
🔍 Latest deploy log https://app.netlify.com/sites/react-play-docs/deploys/6516714bc35ec000086ec56e
😎 Deploy Preview https://deploy-preview-70--react-play-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -107,6 +107,8 @@ npx create-react-play@latest -c <the_play_id>

- Continue developing your play. Happy coding.

> **Note:** When creating different component files for your play _(A separate file to create a component that includes JSX elements, like a custom button component for example)_, please use either a `.jsx`, `.ts` or `.tsx` file extension. This is due to our platform now using Vite for building.
Copy link
Contributor

Choose a reason for hiding this comment

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

Would .ts be fine? As far as I understand, when we use React components with Vite, the file extension should either be .jsx or .tsx right?

Copy link
Collaborator

Choose a reason for hiding this comment

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

we can use .js & .ts but we should use .jsx & .tsx

@priyankarpal
Copy link
Collaborator

@ammaaraslam Can you update me on the progress of this particular issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants