sbayd / jotform-react Goto Github PK
View Code? Open in Web Editor NEWReact Wrapper for Embedding JotForm Forms With SSR support (also supports NextJS/Gatsby/CRA)
License: MIT License
React Wrapper for Embedding JotForm Forms With SSR support (also supports NextJS/Gatsby/CRA)
License: MIT License
There is a warning emitted when using a JotForm embed due to an invalid property.
Message:
Warning: React does not recognize the `allowTransparency` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `allowtransparency` instead. If you accidentally passed it from a parent component, remove it from the DOM element. iframe JotFormEmbed@http://localhost:3000/static/js/bundle.js:10767:17
Via
jotform-react/lib/JotFormReact.js
Line 85 in fda3ef7
Hello.
I am looking to get jotform-react
to installed on a nextJS 13 based react application, within a monorepo using npm workspaces. My react application depends on react@18/react-dom@18, so naturally I get a dependency resolution error trying to install jotform-react
since it defines react-react-dom
as peer dependencies as follows "react": "^17.0.2 | ^16.13.1"
.
I would usually define an overrides
field to my application's package.json to resolve this. Unfortunately, it seems like support for overrides
when using npm workspaces is either non existent or unreliable. I'm not sure what else to try when it comes to trying to override the react/react-dom dependencies of jotform-react
, however I am still looking into things. The alternative solution would be to add react/react-dom@18 to the peer dependencies ("react": "^18.2.0 | ^17.0.2 | ^16.13.1"
or "react": ">= 16.13.1"
).
I'd rather not fork this repo over to do this. Is it possible to add this change to jotform-react
? Happy to make the PR for it if needed.
I am currently using react-jotform-embed
, which has it's own issues around using a class based form component. It seems to do the job decently enough for the time being. jotform-react
seems like the better option though, so I'd like to use it instead.
Are we able to introduce the following peer dependencies change to jotform-react
's package.json?
"peerDependencies": {
"react": ">= 16.13.1",
"react-dom": ">= 16.13.1"
...
}
I am on React and React-DOM version 16.14.0 and after I install and use jotfotm-react
I get this error:
error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
running npm ls react
inside the project dir returns versions of react - 16.14.0 (the one used by my project) and 17.0.2 (the one used inside jotform-react). I think that this should not happen.
It maybe happening due to mentioning certain packages as dependencies instead of peer-dependencies (although I'm not absolutely certain)
can you please look into this?
I am on React and React-DOM version 16.14.0 and after I install and use jotfotm-react
I get this error:
error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
running npm ls react
inside the project dir returns versions of react - 16.14.0 (the one used by my project) and 17.0.2 (the one used inside jotform-react). I think that this should not happen.
It maybe happening due to mentioning certain packages as dependencies instead of peer-dependencies (although I'm not absolutely certain)
can you please look into this?
Sorry if this is a ridiculous question but is there a way to get the values from the form using onSubmit? I've tried a ton of different ways and I can't seem to figure this out.
Thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.