How to implement React and a factory design pattern on Roblox?

I want to use it to add player values and distribute them across different UI elements