React Router v4 Tutorial - #1 Intro
Welcome to React Router v4 course! If you've built web apps with a framework, be it server-side (Node, Rails, Django, Laravel, etc.) or client-side (Angular, Vue, Ember, and a slew of others), then chances are, you're already a pro at static routing. Time and again, we'd first create a config file with our route definitions, and when the app bootstraps, it will then read the routes, match the current URL to one of the entries in the file, and only then render the UI back to the user. Sounds familiar? In fact, the workflow in React Router was (almost) no different up until v4.
Rather than work around React's component composition, the dev team over at React Training decided to embrace it. The fruits of their labor brought us a very unconventional component-based router, in which routing is now part of the rendering, and not the bootstrapping stage (hence the term, dynamic routing). The app itself is built up declaratively with navigational components that are now at the heart of the package. You can get to know more about its philosophy at https://reacttraining.com/react-router/web/guides/philosophy
For this series (and as always), we'll take a very practical and pragmatic approach to discovering this new tool. We'll build out a simple blog SPA (single page application) where visitors can learn about best writers and their works. For navigation, you guessed it, we'll utilize the full power of declarative routing in React Router v4. On top of that, we'll bring in bleeding-edge ES6+ features.
Who needs a backend with Firebase and GraphQL around these days? (Just kidding) We'll use the one and only json-server to mock the data store. Gloss over its awesome docs here https://github.com/typicode/json-server
Like my reading list? Grab the JSON structure that I used in the video at hastebin https://hastebin.com/ditumijade.json
See you next time!
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «React Router v4 Tutorial - #1 Intro», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.