Text in button doesn't get rerendered in react

Having this:

const [myText, setMyText] = useState()

setMyText('hello world')

setTimeout(() => setMyText('123123'), 3000)

return <Button>{myText}</Button>

The text won’t get updated when the content is re-rendered.
Why is this and how to fix?

You need to use useState and NOT useEffect for this

This is just a demonstration, I am using useState, my mistake. Edited.
There is problem with the button component and this also happens inside the Col components.

Don’t know why, can you check?

Create proper demo where it is not working using template from this thread How to ask a good question on forum