React rewrite