MCPcopy
hub / github.com/JetBrains/ring-ui / add

Function add

src/collapse/collapse.stories.tsx:130–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128 const [content, setContent] = useState<Array<string>>([text]);
129
130 const add = () => {
131 setContent([...content, text]);
132 };
133
134 const remove = () => {
135 content.shift();

Callers 1

durationToMillisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected