Code Monkey home page Code Monkey logo

jotform-react's Introduction

Hi there ๐Ÿ‘‹

jotform-react's People

Contributors

sbayd avatar scoot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jotform-react's Issues

allowTransparency ignored needs to be lowercase

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

allowTransparency="true"

Update react peer dependency version

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"
...
}

Error: Invalid hook call (possible issue due to listing certain packages under dependencies instead of peerDependencies)

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?

Error: Invalid hook call.possible issue due to listing certain packages under dependencies instead of peerDependencies

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?

onSubmit values

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.