Code: Select all
const getLoaders = () => {
return Array.from({ length: loaderCount }).map((_, index) => {
if (completedLoaders.includes(index)) {
return ;
} else if (activeLoaders.includes(index)) {
return (
handleAnimationEnd(index)}
/>
);
} else {
return ;
}
});
};
Code: Select all
const getCompletedLoadersJSX = () => {
return completedLoaders.map((loaderId) => (
));
};
const getActiveLoaderJSX = () => {
return activeLoaders.map((loaderId) => (
handleAnimationEnd(loaderId)}
/>
));
};
const getPendingLoaderJSX = () => {
return pendingLoaders.map((loaderId) => (
));
};
Mit geteiltem Rendering animiert nur der erste Loader. Der Rest Jump
bis 100% ohne Animation. Und wie man es behebt. Bitte anzeigen Sie den Code -Link, den ich