useLayout issues with useState
…