Learn class components in React