react rewrite