From b07f40f6529314f35cff1f1a3422505c3135cc01 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Fri, 12 Aug 2022 19:18:41 +0400 Subject: [PATCH] Props vs state content --- .../content/100-react-fundamental-topics/103-props-vs-state.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content/roadmaps/103-react/content/100-react-fundamental-topics/103-props-vs-state.md b/content/roadmaps/103-react/content/100-react-fundamental-topics/103-props-vs-state.md index 942cbfc5e..30b1e1f86 100644 --- a/content/roadmaps/103-react/content/100-react-fundamental-topics/103-props-vs-state.md +++ b/content/roadmaps/103-react/content/100-react-fundamental-topics/103-props-vs-state.md @@ -1,5 +1,8 @@ # Props vs State +Props (short for “properties”) and state are both plain JavaScript objects. While both hold information that influences the output of component render, they are different in one important way: props get passed to the component (similar to function parameters) whereas state is managed within the component (similar to variables declared within a function). + Free Content +Component State What is the difference between state and props in React?