roblox-tsr
roblox-ts9mo ago
65 replies
Dadamo

Properly use Flamework with React

Hey!
I am using these 2 and I am wondering what is a good or the good way to make them work together properly.
Because I assume a react gui would have a controller related but how do you make interaction between the 2, like how does the controller can affect the gui?
Solution
for example, you have a volume setting (a value from 0 to 1), the provider receives this value from the server, passes it to the view, when the client presses the volume up button, the view calls the OnChangeVolume function (which was passed through Props), passing a new value, inside this function the provider does all sorts of manipulations and passes the new value back to the view
Was this page helpful?