Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript dictionary usestate

interface IUser {
  name: string;
}
...
const [user, setUser] = useState({name: 'Jon'});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #dictionary #usestate
ADD COMMENT
Topic
Name
2+3 =