update React sample