React basics: explaining the useState hook