MCPcopy Create free account
hub / github.com/TanStack/db / handleColorChange

Function handleColorChange

examples/react/todo/src/components/TodoApp.tsx:96–99  ·  view source on GitHub ↗
(e: React.ChangeEvent<HTMLInputElement>)

Source from the content-addressed store, hash-verified

94 const titleColor = getComplementaryColor(backgroundColor)
95
96 const handleColorChange = (e: React.ChangeEvent<HTMLInputElement>) => {
97 const newColor = e.target.value
98 setConfigValue(`backgroundColor`, newColor)
99 }
100
101 const handleSubmit = (e: FormEvent) => {
102 e.preventDefault()

Callers

nothing calls this directly

Calls 1

setConfigValueFunction · 0.70

Tested by

no test coverage detected