News for hackers. Stuff that matters.
Re:Figma to React by preommr on Saturday March 27, 2021 @03:49PM (#26605014)
No, because components implies inputs (props), and things like conditional rendering, or slots (props.children), or even life cycle hooks. You'd have to make code style decisions like what kind of code style to use (functional vs class in react e.g.).

Even if somebody did do all of this, merging the file from the app into a real project would be difficult. There'd have to be rules about merging, and diffing, and command line tools, etc. Maintaining and documenting all of this would be an absolute nightmare. And that's not even getting into engineering or marketing difficulties because you'll have people confused about the product identity, or say that it's too complex, or that it's buggy because it has so many more features now. And all this for pretty much nothing.

Because figma already has css exports (even if it's iffy, they're working on it). You export the styles, the padding, the colors, and that's what people really want to get from their figma files. So you get most of the way there for a much, much smaller fraction of effort.

Re:Figma to React by celim307 on Saturday March 27, 2021 @03:58PM (#26605098)
Agreed with this, the tooling for pumping out presentational only components is already there.
Re:Figma to React by debaserab2 on Saturday March 27, 2021 @04:13PM (#26605223)
Is the output suitable enough for a decent UX testing prototype?
Re:Figma to React by andratwiro on Saturday March 27, 2021 @04:40PM (#26605465)
I swear I don't work for Framer, but I've been using it very intensively for UX testing and users aren't capable of differentiating the prototypes from the actual real thing:

https://www.framer.com/user-testing/

The prototypes can be heavy on the browser, but once you go past that the immersion level is deep. You can even add custom google analytics events for quant analysis.

Re:Figma to React by debaserab2 on Saturday March 27, 2021 @05:53PM (#26605963)
Thanks for this, I'll keep this in mind.