Автор: Enrique Pablo Molinari
Издательство: Leanpub
Год: 2022-04-15
Страниц: 163
Язык: английский
Формат: pdf (true)
Размер: 10.1 MB
Learn how to code applications in React 18 by following a solid path that starts by studying essential jаvascript constructions to then go into React core concepts to finally write an application. Understand how to split an application into components (class or function-based ones), how to use props, state, events, hooks, react router v6, and more.
Every successful framework or library provides something unique which gives developers a new tool for writing better software. In the case of React, that tool is called component. You might be thinking that you have been reading about components as the solution to your spaghetti software nightmare for the last 15 years without any success. You are not wrong. However, React is an exception. It provides the constructions and tools to build highly cohesive components to assemble your next application. In this book, we will study React core concepts, to end up being very practical describing how to split an application into components and to fully implement it. But before that, it is necessary to study some jаvascript concepts. Understanding these concepts will make you a better React developer. If you are already a jаvascript developer, then you can just ignore the initial chapter. But if your experience is mainly on server side programming languages like Java, C#, PHP, etc, the initial chapter will give you the necessary basis.
You can use React just by learning from React docs and you will also be able to build applications, without digging into jаvascript. However, if you want to master React and that means, understand why and how certain things work, you must learn some specific concepts from jаvascript.
In React you design applications by assembling components, which are built by using plain jаvascript classes or functions. The guys behind React’s design decisions have challenged very established patterns like MVC, where you have the display logic and the markup separated in different abstractions. They say that these elements are naturally coupled. In React you have the display logic (fetching data, event handling, etc) and the markup in the same abstraction: the component. And each component represents a fragment of functionality of your View. This is what makes React so great and the reason I love it. And among other features provided by React, understanding how to build applications by assembling components is the main goal of this book.
Скачать Understanding React : The Simplest Practical Guide to Start Coding in React