Skip to main content

React State

  • Chapter
  • First Online:
Book cover Pro MERN Stack

Abstract

For this chapter, the goal is to add a button and append a row to the initial list of issues on the click of that button. You’ll add this button below the Issues table. By doing that, you’ll learn about a component’s state, how to manipulate it, how to handle events, and how to communicate between components.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    This is not entirely true. There is, in fact, state in this component: the state of the input fields as the user is typing. But you have not captured them as React state, and have let the browser’s native handlers maintain it.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Vasan Subramanian

About this chapter

Cite this chapter

Subramanian, V. (2017). React State. In: Pro MERN Stack. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2653-7_4

Download citation

Publish with us

Policies and ethics