Add thinking in react to the official docs + cleanup