News for hackers. Stuff that matters.
Re:It's React, but in Python by uhtred on Tuesday June 06, 2023 @02:32PM (#36217148)
yes but no one generates html from the function calls directly in react (even though you could if you wanted), they use jsx which is at least a bit like writing html.
Re:It's React, but in Python by neurostimulant on Tuesday June 06, 2023 @03:10PM (#36217649)
Re:It's React, but in Python by acemarke on Tuesday June 06, 2023 @03:33PM (#36217981)
That page is very out of date. They did later adopt a build step and switch to using JSX in much of the FF DevTools codebase.

As an example, here's the Editor main component (same "latest" commit you pointed to):

https://github.com/mozilla/gecko-dev/blob/aec3a901e6f6b3041b...

The codebase is a mish-mash of very old-style React+Redux code, with newer files and usages.

(I know this because I work at Replay.io, which started as a fork of the FF DevTools source, and we spent all of last year modernizing our fork :) Migrated the entire codebase to TS, ripped out all remaining uses of the ancient `React.DOM` helper functions and converted those to JSX, modernized the 2015-era Redux logic, etc: https://github.com/replayio/devtools/pulls?q=is%3Apr+sort%3A... )

Re:It's React, but in Python by neurostimulant on Wednesday June 07, 2023 @12:43AM (#36222918)
You're right, I totally missed they have tsconfig which include jsx preprocessor now. Too bad the devtools contributor documentation is not updated anymore, mozilla devs are probably stretched too thin to update obscure docs these days.