aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/pages/another.mdx
diff options
context:
space:
mode:
Diffstat (limited to 'docs/pages/another.mdx')
-rw-r--r--docs/pages/another.mdx31
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 />