#useState
function useState(value) {
this._value = value
function state() {
return _value
}
function setState(newValue) {
_value = newValue
}
return [state, setState]
}
function useState(value) {
this._value = value
function state() {
return _value
}
function setState(newValue) {
_value = newValue
}
return [state, setState]
}