Feature request: useScript #1249
Open
Projects
Comments
|
Maybe also on top of that we could build a const useMyScript = makeScript({ url, id, type, async });
useMyScript.preload();
const Demo = () => {
const { data, error, isLoading } = useMyScript();
};
|
|
I will do it ~ |
|
For someone who need this feature right now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Problem: I'd like to dynamically import scripts as
<script>tags.Describe the solution you'd like
Proposal:
Describe alternatives you've considered
I'm using this the code above directly in my project.
The text was updated successfully, but these errors were encountered: