Using client side functions in browser's console
Unanswered
Mugger Crocodile posted this in #help-forum
Mugger CrocodileOP
How can you 'export' a function to the browser from 'use client' components?
2 Replies
as in make a global function in useEffect?
globalThis.myFunction = () => "hello"
//in console
console.log(myFunction())