How to fix React.lazy: the factory function must be a function component in React | DevErrors