Updated react example