Update react snippet