-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
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
dangerouslySetInnerHTML? #29
Comments
This is intentionally not in preact, though it could be added to preact-compat. Example: class Foo extends Component {
componentDidMount() {
this.base.innerHTML = 'hello';
}
} |
That works client side, but obviously would not work for server side rendering (since componentDidMount() will never run on the server.) (Apologies if this comment shows up twice - I replied by email but github seems to have lost the email version. :P) |
True, very good point. Perhaps that's the selling point of |
@jwalton - just published a prerelease of 3.0 which supports |
You, sir, are a scholar and a gentleman. :) |
Now generally available as of |
Fix test using old vnode structure
In React, you can set inner HTML with something like:
but preact doesn't seem to support this? Any tips on how to achieve something similar?
The text was updated successfully, but these errors were encountered: