react hide component after timeout. setState() will force a re-render