Comments (5)
shouldn't we follow the same pattern as Form and provide an Input which has more qwik helpers but if you wanted you still can use the native version
My understanding is that the Form
component is to enable passing actions when submitting the form. I'm not sure there's a need for that on Input
.. But I think we should create another feature request issue if you see a real need for it @PatrickJS.
from qwik.
Just for more context, in Vue it would be something like that:
//uncontrolled -> behaves like vanilla html
<input type="checkbox" checked={true} />
//controlled (one way data-binding)
const acceptConditions = useRef(false);
<input
:checked="acceptConditions"
@change="event => acceptConditions = event.target.checked"
">
//controlled (two way data-binding = syntactic sugar to achieve above behavior)
const acceptConditions = useRef(false);
<input type="checkbox" v-model="acceptConditions">
from qwik.
shouldn't we follow the same pattern as Form
and provide an Input
which has more qwik helpers but if you wanted you still can use the native version
from qwik.
shouldn't we follow the same pattern as
Form
and provide anInput
which has more qwik helpers but if you wanted you still can use the native version
To be honest, even I am confused about the <Form />
component. This issue is about making the distinction between initial
and reactive
values in the docs much clearer for consumers.
Qwik is modeled after normal html, except for the bind syntax.
There is confusion when migrating no matter which ecosystem you look at, because other JSX frameworks decided they were going to do something different. (cough React)
See:
https://discord.com/channels/990511757091033108/1218888360525955122/1241445135686828102
for more context
from qwik.
Form
is confusing too I made some effort to fix it but it needs to be slightly reworked
from qwik.
Related Issues (20)
- [✨]SSG Ignore Authenticated Routes Without Warning HOT 2
- [🐞] SharedArrayBuffer is not defined HOT 1
- [🐞] the Source wasn't match code
- [🐞] Typescript error in the custom portal code provided on Qwik.dev HOT 2
- [✨] Add the option to disable image dev tools HOT 1
- [📖] Create "Qwik web components" page HOT 4
- [🐞] Service Worker prefetch strategy does not work with multiple Qwik containers HOT 4
- [🐞] TextEncoderStream polyfill breaks resumability HOT 4
- [🐞] Strange types issue when building components
- [🐞] After Integrating Builder.io HOT 10
- [🐞] Qwik removes elements generated by 3rd party plugin HOT 8
- [🐞] Polymorphic component with applied `ref` wont update properties HOT 1
- [✨] Build Static Site Generator's DocumentHead with API Calls HOT 1
- [🐞] Scroll position remains after SPA navigation if the scroll container has CSS grid layout. HOT 1
- [🐞] Some Qwik components interfere with resumability in a monorepo setup HOT 1
- [🐞] Vite's assetDir is not honored by Qwik
- [🐞] Setting attributes to undefined causes a re-render
- [🐞] fetchpriority attribute isn't recognized / accepted for responsive images imported via vite-imagetools HOT 1
- [🐞] follow up on Vite's assetsDir support
- [🐞] onSubmit$ / onSubmitComplete$ signature broken? HOT 5
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 qwik.