tutoreact: add full code