делал все по видео
const [settings, setSettings] = useState<ISettings>(() =>
localStorage.getItem("settings") == null ? defaultSettings : (JSON.parse(localStorage.getItem("settings")!) as ISettings)
);
await Promise.all([
'https://learn.javascript.ru/article/promise-chaining/one.js',
'https://learn.javascript.ru/article/promise-chaining/two.js',
'https://learn.javascript.ru/article/promise-chaining/three.js',
].map(loadScript));
one();
two();
three();