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
I'm setting up a dead simple page using Charge (love it btw.)
It's just a page telling the user they are blocked. But I need to display the URL that they are trying to access.
Normally I'd just use window.location for this. But when it's rendered server side there is no window.
window.location
And since no React is ever run in the browser, it never runs my line of JavaScript.
I tried creating another js file and importing it hoping it would get served with the HTML. But no :(
How do I serve a simple piece of JavaScript in the browser with Charge?
I'm even okay if it means adding a script tag to the React code, but that doesn't seem to work either :(
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm setting up a dead simple page using Charge (love it btw.)
It's just a page telling the user they are blocked. But I need to display the URL that they are trying to access.
Normally I'd just use
window.location
for this. But when it's rendered server side there is no window.And since no React is ever run in the browser, it never runs my line of JavaScript.
I tried creating another js file and importing it hoping it would get served with the HTML. But no :(
How do I serve a simple piece of JavaScript in the browser with Charge?
I'm even okay if it means adding a script tag to the React code, but that doesn't seem to work either :(
The text was updated successfully, but these errors were encountered: