React components can possess internal “state,” a set of key-value pairs which belong to the component. When the state changes, React re-renders the component. Historically, state could only be used in class components. Using hooks, you can apply state to functional components too.
Read This Article on CloudSavvy IT ›
from How-To Geek https://ift.tt/2PlG26A
No comments:
Post a Comment