Coder Social home page Coder Social logo

erictooth / react-accessible-form Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 249 KB

React Accessible Form makes handling layout and accessibility easy when writing forms.

License: MIT License

JavaScript 4.13% CSS 7.06% TypeScript 88.81%
form react

react-accessible-form's People

Contributors

atomicpages avatar erictooth avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

atomicpages

react-accessible-form's Issues

Adding react v17 and v18 to peerDependencies

Hi:
Installing dependencies in a consuming package with npm 7+ and with react v17/v18 results in this error. We are using the --legacy-peer-deps option to overcome this for now. It would be good to have v17 and v18 support and not see this error in consuming apps.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: @informatica/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   dev react@"^18.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17.0.0" from [email protected]
npm ERR! node_modules/react-accessible-form
npm ERR!   react-accessible-form@"=2.1.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Any thoughts?

Type error when using ForwardRefExoticComponent

Passing a custom component to as if it's of type ExoticComponent results in a typescript error:

Type 'ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & RefAttributes<HTMLInputElement>>' 
  is not assignable to type 'FunctionComponent<{ className: string; disabled: boolean; id: string; required: boolean; } 
  & Record<string, unknown> & HTMLAttributes<any> & RefAttributes<any>>'

Not sure how to make this more flexible, but I suspect the issue is stemming from here:

as?: React.ElementType<T & BoxHTMLProps>;

This CSB demo outlines the issue

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.