Expand Minimize
This documentation is part of the BETA release and subject to change.

React component files should have correct extension

Files defining React components should have either the .jsx or .tsx extension

CheckId SPF050601
TypeName ReactComponentFileShouldHaveCorrectExtension
Severity Warning
Type Src

Code file containing one or more React components should have the .jsx or .tsx (if you're using TypeScript) extension.

Using the right extension clearly denotes that the particular file defines a React component making it easier for developers to locate the specific file in the project.

Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.