snake on ReactJs