diff options
| author | 2023-04-19 17:50:02 +0800 | |
|---|---|---|
| committer | 2023-04-19 17:50:02 +0800 | |
| commit | 56a6240bf700ac307342ed494d8bfbabe5c822dc (patch) | |
| tree | 0b1288a2ec1cbb538c11f4c122b6a97b9c55a05f /docs/pages/another.mdx | |
| parent | 3adc965dd09490b7efa1cce9f09b0a3b30970277 (diff) | |
| download | HydroRoll-56a6240bf700ac307342ed494d8bfbabe5c822dc.tar.gz HydroRoll-56a6240bf700ac307342ed494d8bfbabe5c822dc.zip | |
✨docs init
Diffstat (limited to 'docs/pages/another.mdx')
| -rw-r--r-- | docs/pages/another.mdx | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/docs/pages/another.mdx b/docs/pages/another.mdx new file mode 100644 index 0000000..7fb6a02 --- /dev/null +++ b/docs/pages/another.mdx @@ -0,0 +1,31 @@ +# Another Page + +```js filename="demo.js" {3} copy +let a = 1; + +console.log(a); +``` + +## Component + +import { useState } from 'react' + +{/* Import CSS modules */} +import styles from '../components/counters.module.css' + +export const Counter = () => { + const [count, setCount] = useState(0); + return ( + <div> + <button onClick={() => setCount(count + 1)} className={styles.counter}>Clicked {count} times</button> + </div> + ); +}; + +<Counter/> + +## External Component + +import Counters from '../components/counters' + +<Counters /> |
