Proper React hook when creating markup

TODO: updateComponent