We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No response
Code like that where we are using Typescript is not working:
declare const jQuery: any; function Demo() { const [, status] = useScriptTag( "https://code.jquery.com/jquery-3.5.1.min.js", ); const [version, setVersion] = useState(0); useEffect(() => { if (typeof jQuery !== "undefined") { setVersion(jQuery.fn.jquery); } }, [status]); return <div>jQuery version: {version}</div>; }
Error:
SyntaxError: Unexpected token, expected "," (3:9)
The text was updated successfully, but these errors were encountered:
The above code is not working because you are not rendering anything. See the other issue you filed for more information.
Sorry, something went wrong.
No branches or pull requests
Is there an existing issue for this?
Code of Conduct
Code Sandbox link
No response
Bug report
Code like that where we are using Typescript is not working:
Error:
The text was updated successfully, but these errors were encountered: