Skip to main content

All Questions

0 votes
1 answer
1k views

I'm getting following error "Cannot read properties of undefined (reading 'then') at lazyInitializer at resolveLazy " while using React Lazy [closed]

This is the Error I'm getting //This is my code where I used the react lazy in React functional component. import React,{Suspense, lazy} from "react"; import { BrowserRouter, Routes, Route } ...
Vidhun's user avatar
  • 21
1 vote
0 answers
469 views

React Functional component lazy loading implementation

We have a simple React application where the parent component (ShopItem) renders multiple child components (CommentCard) in a loop. const ShopItem = ({ item }) => { const [comments, setComments]...
Alex's user avatar
  • 1,496