import React, { useState } from "react"; // Component to demonstrate the usage of DomListener in storybook const Counter = () => { const [count, setCount] = useState(0); return (

Click on the buttons or resize the window and look at the actions triggered!

{count}
); }; // Component to demonstrate the usage of nested DomListener in storybook export const CounterContext = React.createContext({ count: 0, setCount: {}, }); const NestedCounter: React.FC = ({ children }) => { const [count, setCount] = useState(0); const contextValue = { count, setCount, }; return (

Resize the window and look at the actions triggered! Nothing is happening when clicking on buttons

{count} {children}
); }; export { Counter, NestedCounter };