---
title: "What is the difference between state and props in React?"  
description: "What is the difference between state and props in React?"  
author: "Erick Wilsom"  
published: 2022-10-27  
updated: 2022-10-27  
canonical: https://www.mindstick.com/forum/157180/what-is-the-difference-between-state-and-props-in-react  
category: "node.js"  
tags: ["reactjs"]  
reading_time: 1 minute  

---

# What is the difference between state and props in React?

What is the [difference](https://www.mindstick.com/articles/157114/good-news-or-bad-news-and-the-difference-is) between state and props in React?

**Both props and state changes [trigger](https://www.mindstick.com/blog/167/triggers-in-wpf) a [render](https://www.mindstick.com/interview/2205/why-we-need-a-separate-mobile-project-template-while-we-can-render-our-web-application-in-mobile-what-s-new-in-mvc-4-mobile-template) update.**

> Props (short for [properties](https://www.mindstick.com/articles/23331/nootropics-7-different-types-and-their-unique-properties)) are a Component's [configuration](https://www.mindstick.com/articles/13112/setting-up-the-perfect-configuration-for-your-work-computer), its [options](https://www.mindstick.com/articles/43878/making-the-best-use-of-the-options-trade-ideas) if you may. They are received from above and [immutable](https://www.mindstick.com/interview/2439/how-to-create-immutable-class).

- So props can change but they should be immutable?\
- When should you use props and when should you use state?
- If you have data that a [React component](https://www.mindstick.com/forum/159296/implement-a-react-component-that-manages-a-form-s-state-and-validates-user-inputs) needs, should it be passed through props or [setup](https://www.mindstick.com/articles/426/how-to-create-a-setup-project-for-windows-application) in the React component via getInitialState?\ \

## Replies

### Reply by Gourav Jangra

Props are used to pass data from one [component](https://www.mindstick.com/articles/12262/learn-how-to-make-a-component-in-magento-2) to another. The state is a local data storage that is local to the component only and cannot be passed to other components.


---

Original Source: https://www.mindstick.com/forum/157180/what-is-the-difference-between-state-and-props-in-react

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
