Uncaught ReferenceError: setdata is not defined react hooks code example Example: 'useState' is not defined import React, {useState} from 'react';