by xrd · 2y ago · 0 comments
More specifically, I know that Roblox uses lua(u) but I assumed this was all for scripting. React is a tool for building UI.
How do you use React inside Roblox? You can build UI? I'm trying to wrap my head around my clearly mistaken assumption that what was possible in Roblox was writing lua-ish scripts that handle events in Roblox and then alter the game flow. That's very different from a full UI element that manages state and presentation, which is why React was so exciting (ten years ago).
[1]: https://devforum.roblox.com/t/how-to-react-roblox/2964543
Roblox is a game engine, like unity or unreal or godot, that produces games which run within their proprietary platform. But you still have to code the games from an empty starting point.
React is a tool for writing 3D scenes that can handle state updates: https://github.com/pmndrs/react-three-fiber
React is a tool for writing music that can handle state updates: https://github.com/FormidableLabs/react-music
React is a tool for writing infrastructure-as-code templates that… um… could with some additional work handle state updates: https://www.linkedin.com/pulse/aws-terraform-generator-using...
The declarative part is that the UI is recomputed from the state sorta-ex-novo at each update
I expect that in fifty years all programming will look declarative, either like HTML (which is sorta 'natively declarative') or more like React (which shims it into an imperative language).
https://www.tiktok.com/@user2571420815968/video/720501112959...
But both the JavaScript and Lua versions of React are full of high fructose corn syrup, anyway.
https://www.youtube.com/watch?v=H_zsZMn5Efk
I'd prefer a low-calorie high-performance port of Svelte to Lua.