Skip to Content
Pro MERN Stack: Full Stack Web App Development with Mongo, Express, React, and Node
book

Pro MERN Stack: Full Stack Web App Development with Mongo, Express, React, and Node

by Vasan Subramanian
May 2019
Intermediate to advanced content levelIntermediate to advanced
552 pages
14h 55m
English
Apress
Content preview from Pro MERN Stack: Full Stack Web App Development with Mongo, Express, React, and Node
© Vasan Subramanian 2019
Vasan SubramanianPro MERN Stackhttps://doi.org/10.1007/978-1-4842-4391-6_4

4. React State

Vasan Subramanian1 
(1)
Bangalore, Karnataka, India
 

Until now, we only saw static components, that is, components that did not change. To make components that respond to user input and other events, React uses a data structure called state in the component. In this chapter, we will explore how to use React State and how it can be manipulated to change how the component looks and what it shows on screen.

The state essentially holds the data, something that can change, as opposed to the immutable properties in the form of props that you saw earlier. This state needs to be used in the render() method to build the view. It is only the change ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro MERN Stack: Full Stack Web App Development with Mongo, Express, React, and Node

Pro MERN Stack: Full Stack Web App Development with Mongo, Express, React, and Node

Vasan Subramanian

Publisher Resources

ISBN: 9781484243916Purchase LinkPublisher Website