In this video series, I work on my new personal website built using React.
GitHub: https://github.com/celikkoseoglu/celi...
Playlist: • Personal Website with React - Inlinin...
Twitch: / celikkoseoglu
In this video, I try and find a way to import all the blog images dynamically and render them inside the component.
In the previous video, we've discovered that dynamically importing files returns a promise. We have to resolve the promise and then re-render the component with the value of the resolved promise.
So the solution is to use the useEffect() hook to re-render the component each time a promise is resolved.
However, it is not that easy, as you will see in this video. It takes quite a while to figure out.
Смотрите видео Personal Website with React - Using Dynamically Imported Files to Render Component онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Çelik Köseoğlu 03 Декабрь 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3 раз и оно понравилось людям.