Thinking in react