FSD Seminar (State & Props)
FSD Seminar (State & Props)
In React
B.Jyothirmayee
22R01A6713
REACT: A JS library Used For
building Single Page User
Applications.
● Component
● State
● Props
STATE:
A state Is a built- In Object In React , Used For Storing Data or
property Details about the Component. The State can change
over time, each time the component re-renders. The component’s
behaviour always depends on the changes of this state, which
may occur by user input actions or system events.
HelloWorld.js
Hello,World!
Hey,there!
SUMMARY:
STATE : PROPS:
● MUTABLE ● IMMUTABLE
● Local To The Component ● Data passing through various
● State is both read and write Components
● Just Holds Info ● Props are Read-Only
● State can't make component as ● Passes info
reusable ● Props makes components reusable
THANK YOU!