facebook / stylex

StyleX is the styling system for ambitious user interfaces.
https://stylexjs.com
MIT License
8.22k stars 303 forks source link

Integration with Create React App by default, including types support for typescript #482

Closed ayoseturru closed 3 months ago

ayoseturru commented 3 months ago

Feature Request: Support StyleX in Create React App by Default

Description:

I would like to propose adding native support for StyleX in Create React App (CRA) by default. This would eliminate the need for users to eject or maintain a custom babel config file solely for integrating StyleX into their projects.

Benefits:

  1. Streamlined Development: Users can seamlessly integrate StyleX into their Create React App projects without the need for additional configuration steps.
  2. Accessibility: Making StyleX available by default would promote its usage and encourage developers to explore its features, thereby potentially increasing adoption.
  3. Improved Developer Experience: Simplifying the process of integrating StyleX can enhance the overall developer experience and reduce friction when working on React projects.

Implementation Details:

Additional Considerations:

Conclusion:

Integrating StyleX into Create React App by default would simplify the process of using this library and encourage its adoption among React developers. This feature enhancement could contribute to a more streamlined development experience and facilitate the creation of stylish and responsive web applications.

necolas commented 3 months ago

This request is probably best to make in the CRA repo

nmn commented 3 months ago

297 covers the current issues with Webpack. As we fix that, CRA should be unblocked. Closing as a duplicate of that issue.