forked from nodejs/nodejs.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocs.tsx
More file actions
26 lines (24 loc) · 722 Bytes
/
docs.tsx
File metadata and controls
26 lines (24 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import React from 'react';
import { useApiData } from '../hooks';
import Hero from '../components/hero';
import Layout from '../components/layout';
export default () => {
const title = 'API Docs';
const description = 'Come learn yourself something.';
const apiData = useApiData('v12.9.1');
return (
<Layout title={title} description={description}>
<Hero title={title} />
<article style={{ width: '100%' }} className="article-reader">
<nav>
<ul>
{apiData.modules.map(module => (
<li key={module.name}>{module.displayName}</li>
))}
</ul>
</nav>
<p>Welcome to the API Page!</p>
</article>
</Layout>
);
};