MCPcopy Create free account
hub / github.com/flatlogic/react-material-admin / handleChange

Function handleChange

src/pages/CRUD/Users/table/UsersTable.js:103–114  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

101 };
102
103 const handleChange = (id) => (e) => {
104 const value = e.target.value;
105 const name = e.target.name;
106
107 setFilterItems(
108 filterItems.map((item) =>
109 item.id === id ?
110 { id, fields: { ...item.fields, [name]: value } } :
111 item
112 )
113 );
114 };
115
116 const handleSubmit = (e) => {
117 e.preventDefault();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected