write documentation requiring React components to have .jsx extension instead of .js #1823
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
Milestone
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
Resources/Instructions
.jsx
extension works with Vite not.js
extension in React? vitejs/vite#13715 (comment) quoting Evan You, creator of ViteThe text was updated successfully, but these errors were encountered: