+ 1
Regarding state in react
In rfce , how to declare a state?is it similar to that in normal components?
5 Antworten
+ 1
In rfce ,you can declare useState as following
const [state, setstate]=React.useState()
+ 1
Shubhank Kulshreshtha yes ,also a typo ,it was useState not newState
+ 1
Yup , got that . Thanks 😊
+ 1
Refer to the React tutorial here.
0
Abhay you mean like hooks right