rewrite react code
rewrite react code