Closed fleven-kds closed 6 months ago
For interactive components we cannot use React click handler (onClick
) b/c React is only used as template engine in DSA. There is no react running in the 11ty-starter, so I moved the functionality into vanilla js.
It appears that the JavaScript functions correctly in Storybook, but not in the 11ty-starter. Given the recurring issues with components containing JavaScript (#45 ), it might be worth investigating how JavaScript is imported from components into the 11ty-starter.