diff options
Diffstat (limited to 'examples/framework-preact/src/components/Counter.tsx')
-rw-r--r-- | examples/framework-preact/src/components/Counter.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/framework-preact/src/components/Counter.tsx b/examples/framework-preact/src/components/Counter.tsx index 7c520b167..a2ed0277d 100644 --- a/examples/framework-preact/src/components/Counter.tsx +++ b/examples/framework-preact/src/components/Counter.tsx @@ -1,5 +1,6 @@ import { h, Fragment } from 'preact'; import { useState } from 'preact/hooks'; +import './Counter.css'; export default function Counter({ children }) { const [count, setCount] = useState(0); @@ -8,12 +9,12 @@ export default function Counter({ children }) { return ( <> - <div className="counter"> + <div class="counter"> <button onClick={subtract}>-</button> <pre>{count}</pre> <button onClick={add}>+</button> </div> - <div className="children">{children}</div> + <div class="counter-message">{children}</div> </> ); } |