Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

useState

import React, { useState } from 'react';
function Example() {
  const [variable, callforupdate] = useState(defaulttwhatever);// <-- this it
  return (
    <div></div>
    );
}
Source by reactjs.org #
 
PREVIOUS NEXT
Tagged: #useState
ADD COMMENT
Topic
Name
6+9 =