Learn React - new docs introduced

Опубликовано: 18 Март 2023
на канале: Konstantyn's coding
292
3

New React docs: https://react.dev/
Legacy (old) React docs: https://legacy.reactjs.org/

In today's video, I want to show you the newly introduced React documentation. The new and only website for this documentation was introduced just two days ago, and I'm really excited to explore it and show it to you.

--------------------------------
Hello, my name is Konstantyn, I'm a Frontend Engineer working in a lovely city of Warsaw. My main technology stack is React. Please ask me questions in comments and subscribe for more tutorials like this!

✅ Follow Me:
LinkedIn:   / kostiantyn-burlai  
Github: https://github.com/burlai

☕ Buy Me A Coffee: https://www.buymeacoffee.com/konstantyn
--------------------------------

Before that, for quite a long time, like a couple of years, we had two websites with React documentation: the official reactjs.org and the beta version website with all new approaches, which then turned into the current official documentation. That means it is much more convenient and straightforward for all developers who use React - you don't have two versions of documentation but only one.

What is the difference between the old documentation and the new one? The main difference is the approach to creating React components and building React applications. In short, in the early days, there were two different types of React components: class-based and functional components. They were written differently, and the idea was that class-based components had the state (I'll tell you about the state of the component later) and functional components didn't.

However, when Hooks were introduced to React (we will also dive into this concept later), functional components got the possibility to have state and work with it. Now, it is the only recommended way to write React applications and build components, so there is no confusion with class and function approaches.

Don't worry if this doesn't make sense to you yet. In the next videos, we will dive into creating React components, combining them together, and then we will learn about Hooks, state, and everything else you need to know to start developing your awesome React applications!

#react #reactjs #reactjstutorial