How To Name A Roact Element?

I have created a ScreenGui and it’s named “RoactTree”, after mounting it. I did not see how to name an element (normal Lua: Object.Name = “Object’s Name” <-- Already tried this, nothing happened). What did I miss?

It is very unclear what your question is about. Also ‘Art Design Support’ is not the right subforum for a scripting question.

Edit, after looking into Roact, it seems you can only create new elements and you cannot edit already existing ones.

This belongs in #development-support:scripting-support

Also it doesn’t matter how you name things. I’m assuming the script is parented to the object so you would say
script.Parent.name

If the script was parented to workspace you would say
game.StarterGui.RoactTree