Multiple edits and example changes to React State guide (#26672)
Multiple edits and example changes to React State guide (#26672)

* Multiple edits and example changes to React State article

* fix: added note as per docs

HKuz/FreeCodeCamp,BhaveshSGupta/FreeCodeCamp,HKuz/FreeCodeCamp,BhaveshSGupta/FreeCodeCamp,BhaveshSGupta/FreeCodeCamp,jonathanihm/freeCodeCamp,FreeCodeCamp/FreeCodeCamp,jonathanihm/freeCodeCamp,FreeCodeCamp/FreeCodeCamp,raisedadead/FreeCodeCamp,raisedadead/FreeCodeCamp