stylex icon indicating copy to clipboard operation
stylex copied to clipboard

Open source the codemod that migrate from the old stylex syntax to the new stylex syntax

Open SukkaW opened this issue 4 months ago • 1 comments

Describe the feature request

When stylex was first introduced at React Conf in 2019, its API looked like this:

const styles = stylex.create({
  red: {},
  blue: {}
});

<Button className={styles('red', blue && 'blue')} />

Upon its introduction, many projects attempted to replicate the concept, with the style9 doing an exceptional job.

Since then, stylex has evolved rapidly with significant changes to the API, while the community exploring ideas with projects like style9.

Since stylex is now open-sourced, I'm considering migrating my existing projects, which are currently powered by style9, to stylex. However, this transition would entail numerous modifications.

I understand that Facebook might use an internal codemod for this purpose. Is there any possibility of making it open-source?

SukkaW avatar Feb 10 '24 17:02 SukkaW