- fetch('https://facejsonserver.000webhostapp.com/data.json')
+ fetch('https://facejsonserver.000webhostapp.com/')
React.lazy
просто обёртка. const steps = [
{
name: 'Шаг 1',
component: React.lazy(() => import('./steps/step1.jsx'))
},
{
name: 'Шаг 2',
component: React.lazy(() => import('./steps/step2.jsx'))
}
];