MCPcopy Create free account
hub / github.com/PaulleDemon/PyUIBuilder / addInput

Function addInput

src/components/inputs.js:53–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 const [inputs, setInputs] = useState([""]) // Initialize with one input
52
53 const addInput = () => {
54 setInputs([...inputs, ""])
55 }
56
57 const removeInput = (index) => {
58 setInputs(inputs.filter((_, i) => i !== index))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected