Adding addClass, removeClass and replaceClass to client side components