Emulate React setProps