React and React Native
eBook - ePub

React and React Native

Build cross-platform JavaScript and TypeScript apps for the web, desktop, and mobile

  1. 508 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

React and React Native

Build cross-platform JavaScript and TypeScript apps for the web, desktop, and mobile

About this book

Get a big-picture view of modern React and React Native and see how they go hand-in-hand – covering TypeScript development, Vite, state management strategies, unit testing with Jest, and more.Purchase of the print or Kindle book includes a free PDF eBook.

Key Features

  • New content on TypeScript, React frameworks, state management strategies, and unit testing
  • Get to grips with React fundamentals and modern React techniques and architecture
  • Broaden your React expertise through mobile development with React Native

Book Description

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.

What you will learn

  • Explore React architecture, component properties, state, and context
  • Work with React Hooks for handling functions and components
  • Fetch data from a server using the Fetch API, GraphQL, and WebSockets
  • Dive into internal and external state management strategies
  • Build robust user interfaces (UIs) for mobile and desktop apps using Material-UI
  • Perform unit testing for your components with Vitest and mocking
  • Manage app performance with server-side rendering, lazy components, and Suspense

Who this book is for

This book is for any JavaScript or TypeScript developer who wants to start learning how to use React and React Native for web and mobile app development.No prior knowledge of React or React Native is required. However, a working knowledge of JavaScript is necessary to be able to follow along the content covered.

]]>

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access React and React Native by Mikhail Sakhniuk,Adam Boduch in PDF and/or ePUB format, as well as other popular books in Computer Science & Web Development. We have over one million books available in our catalogue for you to explore.

Table of contents

  1. Preface
  2. React
  3. Why React?
  4. Rendering with JSX
  5. Understanding React Components and Hooks
  6. Event Handling in the React Way
  7. Crafting Reusable Components
  8. Type-Checking and Validation with TypeScript
  9. Handling Navigation with Routes
  10. Code Splitting Using Lazy Components and Suspense
  11. User Interface Framework Components
  12. High-Performance State Updates
  13. Fetching Data from a Server
  14. State Management in React
  15. Server-Side Rendering
  16. Unit Testing in React
  17. React Native
  18. Why React Native?
  19. React Native under the Hood
  20. Kick-Starting React Native Projects
  21. Building Responsive Layouts with Flexbox
  22. Navigating Between Screens
  23. Rendering Item Lists
  24. Geolocation and Maps
  25. Collecting User Input
  26. Responding to User Gestures
  27. Showing Progress
  28. Displaying Modal Screens
  29. Using Animations
  30. Controlling Image Display
  31. Going Offline
  32. Other Books You May Enjoy
  33. Index