0%

Book Description

When traditional web development techniques don't cut it, try React. Use React to create highly interactive web pages faster and with fewer errors. With a little JavaScript experience under your belt, you'll be up and running in no time creating dynamic web applications. Craft isolated components that make your apps easier to develop and maintain, with plenty of guidance on best practices. Set up automated tests, and make pages render fast for your users. See how to use your React skills to integrate with other front-end technologies when needed.

Dive right into React by defining components, the basic building blocks of a React application. Integrate modern JavaScript language features such as classes and arrow functions in your app. Analyze the relationships in your data to isolate state, and sync the data model with what your users see.

Once you're familiar with how a React application works, organize your code base with modules. Configure a production build and deliver your app as efficiently as possible with Webpack. Master testing with React-specific advice and tools to catch the most bugs with the least amount of code. Learn the basics of the Redux library. Define actions and manage an immutable central state with reducers, then connect Redux to your React components to build even larger and more complex interfaces. Package your React code as a standalone widget so anyone can use it in their own applications. Reuse existing JavaScript code in your React components, and build a new React view on top of an existing data model shared with a legacy application.

When you finish this book, you'll be well on your way to solving your front-end problems with React.

What You Need:

Node.js 6.x or later, and a modern web browser.

Table of Contents

  1.  Acknowledgments
  2.  Preface
    1. Who Should Read This Book
    2. What’s in This Book
    3. What You Need
    4. Conventions
    5. Where to Go for Help
  3. 1. An Introduction to Components
    1. Set Up Your First Project
    2. Create a Component
    3. Describe Elements with JSX
    4. Match Components and Data
    5. Design Presentational Components
    6. Assemble the Word Counter
    7. What You Learned
  4. 2. Work with State and Events
    1. Get to Know State
    2. Define the Application State
    3. Update the State with Events
    4. Handle Asynchronous Events
    5. What You Learned
  5. 3. Create a Production Build
    1. Set Up the Development Environment
    2. Configure webpack
    3. Configure Babel
    4. Run Your Build
    5. Speed Up Feedback
    6. Organize Your Code with Modules
    7. What You Learned
  6. 4. Test Your React Components
    1. Set Up the Test Framework
    2. Test a Single Function
    3. Test Component Boundaries
    4. Prevent Visual Regressions
    5. What You Learned
  7. 5. Using Redux as a Central Data Store
    1. Redux Fundamentals
    2. Design the Data Flow
    3. Connect the User Interface
    4. What You Learned
  8. 6. Work Well with Others
    1. Share Your Code with Others
    2. Integrate Legacy Widgets
    3. Combine React Views with External Models
    4. What You Learned
  9.  Bibliography
52.14.232.232