ReactJS state vs prop

Updating 2016:
React is changed, and explanation “props vs state” became very simple. If a component needs to change data – put it in a state, otherwise in props. Because props are read-only now.

What’s the exact difference between props and state?

You can find good explanation here (full version)

Changing props and state

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)