MCPcopy Create free account
hub / github.com/neomjs/neo / onButtonClick

Function onButtonClick

examples/functional/nestedTemplateComponent/Component.mjs:50–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48
49 // The idiomatic way to handle a button click is with the handler config.
50 const onButtonClick = () => {
51 setShowDetails(prev => !prev)
52 };
53
54 const cardStyle = {
55 border : '1px solid #eee',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected