E-Book, Englisch, 518 Seiten
Sakhniuk / Boduch React and React Native
5. Auflage 2024
ISBN: 978-1-80512-687-4
Verlag: De Gruyter
Format: EPUB
Kopierschutz: 0 - No protection
Build cross-platform JavaScript and TypeScript apps for the web, desktop, and mobile
E-Book, Englisch, 518 Seiten
ISBN: 978-1-80512-687-4
Verlag: De Gruyter
Format: EPUB
Kopierschutz: 0 - No protection
Welcome to your big-picture guide to the React ecosystem.
If you're new to React and looking to become a professional React developer, this book is for you. This updated fifth edition reflects the current state of React, including React framework coverage as well as TypeScript.
Part 1 introduces you to React. You'll discover JSX syntax, hooks, functional components, and event handling, learn techniques to fetch data from a server, and tackle the tricky problem of state management. Once you're comfortable with writing React in JavaScript, you'll pick up TypeScript development in later chapters.
Part 2 transitions you into React Native for mobile development. React Native goes hand-in-hand with React. With your React knowledge behind you, you'll appreciate where and how React Native differs as you write shared components for Android and iOS apps. You'll learn how to build responsive layouts, use animations, and implement geolocation.
By the end of this book, you'll have a big-picture view of React and React Native and be able to build applications with both.
Autoren/Hrsg.
Fachgebiete
- Mathematik | Informatik EDV | Informatik Digital Lifestyle Internet, E-Mail, Social Media
- Mathematik | Informatik EDV | Informatik Programmierung | Softwareentwicklung Handheld Programmierung
- Mathematik | Informatik EDV | Informatik Programmierung | Softwareentwicklung Programmier- und Skriptsprachen
Weitere Infos & Material
Table of Contents - Why React?
- Rendering with JSX
- Understanding React Components and Hooks
- Event Handling in the React Way
- Crafting Reusable Components
- Type-Checking and Validation with TypeScript
- Handling Navigation with Routes
- Code Splitting Using Lazy Components and Suspense
- User Interface Framework Components
- High-Performance State Updates
- Fetching Data from a Server
- State Management in React
- Server-Side Rendering
- Unit Testing in React
- Why React Native?
- React Native Under the Hood
- Kickstarting React Native Projects
- Building Responsive Layouts with Flexbox
- Navigating Between Screens
- Rendering Item Lists
- Geolocation and Maps
- Collecting User Input
- Responding to User Gestures
- Showing Progress
- Displaying Modal Screens
- Using Animations
- Controlling Image Displays
- Going Offline
Preface
Over the years, React and React Native have proven themselves among JavaScript developers as popular choices for a comprehensive and practical guide to the React ecosystem. This fifth edition comes with the latest features, enhancements, and fixes of React, while also being compatible with React Native. It includes new chapters covering critical features and concepts in modern cross-platform app development with React and TypeScript.
From the basics of React to popular features such as Hooks, server rendering, and unit testing, this definitive guide will help you become a professional React developer in a step-by-step manner.
You’ll begin by learning about the essential building blocks of React components. Next, you’ll learn how to improve the stability of your components using TypeScript. As you advance through the chapters, you’ll work with higher-level functionalities in application development and then put your knowledge to work by developing user interface components for the web and native platforms.
By the end of this book, you’ll be able to build React applications for the web and React Native applications for multiple platforms: web, mobile, and desktop: with confidence.
Who this book is for
This book is for any JavaScript developer who wants to start learning how to use React and React Native for mobile and web application development. No prior knowledge of React is required; however, working knowledge of JavaScript, HTML and CSS is necessary to be able to follow along with the content covered.
What this book covers
, , describes what React is and why you want to use it to build your application.
, , teaches the basics of JSX, the markup language used by React components.
, , introduces the core mechanisms of components and Hooks in React application.
, , gives an overview of how events are handled by React components.
, , guides you through the process of refactoring components by example.
, , describes the various phases that React components go through and why it’s important for React developers.
, , provides plenty of examples of how to set up routing for your React web app.
, , introduces code-splitting techniques that result in performant, more efficient applications.
, , gives an overview of how to get started with MUI, a React component library for building UIs.
, , goes into depth on the new features in React that allow for efficient state updates and a high-performing application.
, , discusses how we can retrieve the data from servers using various ways.
, , covers managing state in the app with popular solutions like Redux and Mobx.
, , teaches you how to use Next.js to build large-scale React applications that render content on a server and a client.
, , gives an overview of testing software with focus on unit testing using Vittest.
, ?, describes what the React Native library is and the differences between native mobile development.
, , gives an overview of the architecture of React Native.
, , teaches you how to start a new React Native project.
, , describes how to create a layout and add styles.
, , shows the approaches to switching between screens in an app.
, , describes how to implement lists of data in an application.
, , explains on how to track geolocation and add a map to an app.
, , teaches you how to create forms.
, , provides examples of how to handle user gestures.
, , shows you how to handle process indications and progress bars.
, , teaches you how to create dialog modals.
, , describes how to implement animations in an app.
, , gives an overview of how to render images in a React Native app.
, , shows how to deal with an app when a mobile phone doesn’t have an internet connection.
To get the most out of this book
This book assumes you have a basic understanding of the JavaScript programming language. It also assumes that you’ll be following along with the examples, which require a command-line terminal, a code editor, and a web browser. You’ll learn how to set up a React project in , .
The requirements for learning React Native are the same as for React development, but to run an app on a real device, you will need an Android or iOS smartphone. In order to run iOS apps in the simulator, you will need a Mac computer. To work with Android simulator, you can use any kind of PC.
Download the example code files
The code bundle for the book is hosted on GitHub at https://github.com/PacktPublishing/React-and-React-Native-5E. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!
Download the color images
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. You can download it here: https://packt.link/gbp/9781805127307.
Conventions used
There are a number of text conventions used throughout this book.
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. For example: “You have the actual routes declared as elements.”
A block of code is set as follows:
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
Any command-line input or output is written as follows:
Bold: Indicates a new term, an important word, or words that you see on the screen. For instance, words in menus or dialog boxes appear in the text like this. For example: “Select System info from the Administration panel.”
Warnings or important notes appear like this.
Tips and tricks appear like this.
Get in touch
Feedback from our readers is always welcome.
General feedback: Email and mention the book’s title in the subject of your message. If you have questions about any aspect of this book, please email us at .
Errata: Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you have found a mistake in this book, we would be grateful if you reported this to us. Please visit http://www.packtpub.com/submit-errata, click Submit Errata, and fill in the form.
Piracy: If you come across any illegal copies of our...