In this video I have demonstrate how can you use useState for initializing value as an object rather than primitive type values. To demonstrate that I have just inputed name of the user which will be an object with two keys firstName and lastName.
React hooks:
Subscribe : https://www.youtube.com/channel/UCs6nmQViDpUw0nuIx9c_WvA
#react #react-hooks