- Aug 2024
-
github.com github.com
-
This seems to be more than just a thin wrapper like https://github.com/rainerschuster/final-form-material-ui was. I kind of prefer the simplicity of focus of final-form-material-ui.
This appears to be attempting to do too much. Though if it gives you exactly what you want, great.
-
-
github.com github.com
-
mui.com mui.com
Tags
Annotators
URL
-
- Jul 2021
-
legacy.reactjs.org legacy.reactjs.org
-
Components let you split the UI into independent, reusable pieces, and think about each piece in isolation.
I like this definition of 'components'.
Tags
Annotators
URL
-
- Jan 2021
-
legacy.reactjs.org legacy.reactjs.org
-
The alternative is uncontrolled components, where form data is handled by the DOM itself.
-
- Nov 2020
-
github.com github.com
-
For use$ since svelte is never going to support actions for components, i designed something that reminds React hooks that will in some ways replace this feature.
Isn't that what use$ is trying to do already? How is that "something that reminds React hooks" any different? Will be interested to see...
-
-
github.com github.com
-
Another difference is that context in Svelte does not insert anything into the visual component tree. There is no <Context.Provider> element like in React
-
- Oct 2020
-
medium.com medium.com
-
There is a killer feature of vDOM that Svelte has nothing to replace with. It is the ability to treat component hierarchy as an object.
-
-
docs.google.com docs.google.com
-
But it’s really hard to see, because our human brains struggle to think about this Clock function as something for generating discrete snapshots of a clock, instead of representing a persistent thing that changes over time.
-
-
recoiljs.org recoiljs.org
-
Recoil defines a directed graph orthogonal to but also intrinsic and attached to your React tree.
-
-
github.com github.com
-
In general it is recommended you handle forms in this "controlled" manner. In some cases it might make sense to manage the form state outside of Solid via refs. These "uncontrolled" forms can also work. Just be conscious of the difference as mixing approaches can lead to unexpected results.
-
- Dec 2019
-
codesandbox.io codesandbox.io
-
github.com github.com
Tags
Annotators
URL
-
-
plasma-ui.com plasma-ui.com
-
MINIMALISTIC
Tags
Annotators
URL
-
-
github.com github.com
Tags
Annotators
URL
-
-
github.com github.com
Tags
Annotators
URL
-
-
github.com github.com
-
github.com github.com
-
Not maintained actively enough. Check out https://github.com/insin/nwb#react-components-and-libraries or https://neutrinojs.org/packages/react-components/
-
-
neutrinojs.org neutrinojs.org
- Nov 2019
-
gist.github.com gist.github.com
-
-
React Native has also used this pattern in TouchableWithoutFeedback
-
-
github.com github.com
-
Not clear whether it could (easily) be used "standalone" — without any child checkboxes.
-
-
www.robinwieruch.de www.robinwieruch.de
-
However, in this case you would lose the possibility to render something in between. You are strictly coupled to the higher-order component's render method. If you need to add something in between of the currency components, you would have to do it in the higher-order component. It would be quite similar as you have done it previously by rendering the currency components straight away in the Amount component. If using a render prop component instead, you would be flexible in your composition.
-
For the sake of completeness, the following code demonstrates that the problem could be solved with a higher-order component (HOC) as well:
-
-
legacy.reactjs.org legacy.reactjs.org
-
Since an uncontrolled component keeps the source of truth in the DOM, it is sometimes easier to integrate React and non-React code when using uncontrolled components.
A good example for when to use uncontrolled components
-
-
-
-
The terms “controlled” and “uncontrolled” usually refer to form inputs, but they can also describe where any component’s data lives. Data passed in as props can be thought of as controlled (because the parent component controls that data). Data that exists only in internal state can be thought of as uncontrolled (because the parent can’t directly change it).
-
-
github.com github.com
-
So the main thing this gives us is a way to set indeterminate property of input via an indeterminate property?
This is misnamed. Doesn't actually give us a tri-state checkbox. Just a binary checkbox.
-
-
github.com github.com
-
input.indeterminate = indeterminate
So the main thing this gives us is a way to set indeterminate property of input via an indeterminate property?
Not sure how that supposedly gives us a tri-state checkbox.
-
-
github.com github.com
-
Need demo to understand what it does. Find one among https://github.com/search?q=reactabular-sticky&type=Code ?
-
-
github.com github.com
-
github.com github.com
-
rsuite.github.io rsuite.github.io
-
github.com github.com
Tags
Annotators
URL
-
-
github.com github.com
-
github.com github.com
-
github.com github.com
- Oct 2019
-
blueprintjs.com blueprintjs.com
-
ant.design ant.design
-
ant.design ant.design
-
foxhound87.github.io foxhound87.github.io
-
-
iulian-radu-at.github.io iulian-radu-at.github.io
-
github.com github.com
-
However, if more control is needed, you can pass any of these pieces of state as a prop (as indicated above) and that state becomes controlled. As soon as this.props[statePropKey] !== undefined, internally, downshift will determine its state based on your prop's value rather than its own internal state.
-
-
react-select.com react-select.com
-
Popout
-
-
github.com github.com
-
setState({isOpen: true}
-
-
github.com github.com
- Sep 2019
-
github.com github.com
-
You can control the following props by providing values for them. If you don't, react-select will manage them for you. value / onChange - specify the current value of the control menuIsOpen / onMenuOpen / onMenuClose - control whether the menu is open inputValue / onInputChange - control the value of the search input (changing this will update the available options) If you don't provide these props, you can set the initial value of the state they control: defaultValue - set the initial value of the control defaultMenuIsOpen - set the initial open value of the menu defaultInputValue - set the initial value of the search input
Example of having props for both ways: value or defaultValue, depending on whether you want it to be controlled or not.
-
-
-
github.com github.com
-
github.com github.com
Tags
Annotators
URL
-
-
react.rocks react.rocks
- Aug 2019
-
legacy.reactjs.org legacy.reactjs.org
-
logProps
Outputs old and new props whenever component updates.
-
-
schoolbus.netlify.com schoolbus.netlify.com
-
Liked:
- How you can't backspace to remove the country code (countryCodeEditable={false})
sourceUrl: https://github.com/lessondesk/schoolbus/blob/master/src/components/tel-input/index.js
-
-
github.com github.com
-
github.com github.com
-
catamphetamine.github.io catamphetamine.github.io
-
storybook.grommet.io storybook.grommet.io
Tags
Annotators
URL
-
-
github.com github.com
-
github.com github.com
-
github.com github.com
Tags
Annotators
URL
-
-
material-components.github.io material-components.github.io
-
github.com github.com