Hui guys , somebody know because . when I use every function , react return this error ?
this is code
import "bootstrap/dist/css/bootstrap.min.css";
import { DropdownButton, Dropdown } from "react-bootstrap";
import React, { useEffect, useState } from "react";
import { ConnectButton, Icon } from "web3uikit";
import "../App.css";
export default function SideBar() {
const [chainId, setChainId] = useState("0x1");
useEffect(() => {
console.log("new chain selection => " + chainId);
}, [chainId]);
return (
<div className="SideBar">
<div className="connectButton">
<DropdownButton title="ChainId" onSelect={(key)=>{setChainId(key)}} >
<Dropdown.Item eventKey="0xa86a">
<Icon
fill="#000000"
size={20}
svg="avax"
/>
</Dropdown.Item>
<Dropdown.Item eventKey="0x89">
<Icon
fill="#000000"
size={20}
svg="polign"
/>
</Dropdown.Item>
<Dropdown.Item eventKey="0x1">
<Icon
fill="#000000"
size={20}
svg="eth"
/>
</Dropdown.Item>
<Dropdown.Item eventKey="0x1">
<Icon
fill="#000000"
size={20}
svg="linux"
/>
</Dropdown.Item>
</DropdownButton>
<ConnectButton />
</div>
</div>
);
}