Is there a method to do some thing after render?

In React, we can do this:
this.state = {foo: 2};
this.setState({foo: 123}, ()=> {
console.log(foo); // now foo is 123
// and we can do dom operation here
});

and in Dojo2, how we can do dom operation after rerender?

I use setTimeout, but I don’t know the different