reactjs rewrite