simplify react sample