make some progress understanding how react works