Comments (2)
Hi @rash09 👋🏻 well, the error is pretty much self explanatory, this dependency uses react 18 as peer dependency, we used to have support for react 17, but we no longer have, if you want to use it, I suggest just copy the code and put it manually into your project, otherwise feel free to open a PR to add support for older react versions and I'll review it 👍🏻
from dangerously-set-html-content.
I'll close this since I think the support for older version of React might not be a huge impact for this to work (also not much free time right now to fix it). I think copy/paste the code of the lib should be a fair solution hehehe unless someone raise a PR with the fix 👍
from dangerously-set-html-content.
Related Issues (11)
- Does not render HTML on SSR pages
- Problems with rendering multiple scripts HOT 12
- Gatsby: Unhandled Runtime Exception HOT 2
- 'InnerHTML' cannot be used as a JSX component, Its instance type 'DangerouslySetHtmlContent' is not a valid JSX element. HOT 5
- React 18 support HOT 3
- Could not find a declaration file for module 'dangerously-set-html-content' HOT 2
- Not Rerun the script when route to another page and come back, need to reload the page manully. HOT 15
- Script not working with Firefox HOT 2
- Passing `""` to `html` cause a runtime error HOT 1
- The example is this repo doesn't work as you would expect HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dangerously-set-html-content.