How can I do this
const { Moralis } = useMoralis();
without using useMoralis?
How can I do this
const { Moralis } = useMoralis();
without using useMoralis?
I had this in my code:
import { useMoralis, useMoralisWeb3Api } from "react-moralis";
function App() {
const Web3Api = useMoralisWeb3Api();
const { Moralis } = useMoralis();
but you could also do:
import { useMoralisWeb3Api } from "react-moralis";
import { Moralis } from "moralis";