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

write documentation requiring React components to have .jsx extension instead of .js #1823

Open
2 tasks
Tracked by #1768
aqandrew opened this issue Sep 10, 2024 · 0 comments
Open
2 tasks
Tracked by #1768
Assignees
Labels
draft Feature: Code Health Make our code more readable, testable, and modular ready for dev lead ready for developer lead to review the issue Role: Frontend React front end work Size: Missing

Comments

@aqandrew
Copy link
Member

Overview

Traditionally, React components may be written in either .js or .jsx files. Our new build tool, Vite, requires that all files containing React components have the .jsx extension. This practice helps to prevent errors during Vite's static analysis of imported files.

Action Items

  • decide whether the README is the best place for this documentation to live
  • write this documentation, optionally linking to resources below for supporting info

Resources/Instructions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
draft Feature: Code Health Make our code more readable, testable, and modular ready for dev lead ready for developer lead to review the issue Role: Frontend React front end work Size: Missing
Projects
Status: New Issue Approval
Development

No branches or pull requests

2 participants