MCPcopy
hub / github.com/preactjs/preact / PatchedTextField

Function PatchedTextField

demo/textFields.jsx:4–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import TextField from '@material-ui/core/TextField';
3
4const PatchedTextField = props => {
5 const [value, set] = useState(props.value);
6 return (
7 <TextField {...props} value={value} onChange={e => set(e.target.value)} />
8 );
9};
10
11const TextFields = () => (
12 <div>

Callers

nothing calls this directly

Calls 2

useStateFunction · 0.85
setFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…