docs.sheetjs.com/docz/static/next/index.js

27 lines
838 B
JavaScript
Raw Normal View History

2022-08-16 09:29:15 +00:00
import Head from 'next/head';
2023-05-26 22:50:23 +00:00
export default function Index() { return ( <>
2022-08-16 09:29:15 +00:00
<Head>
<meta httpEquiv="Content-Type" content="text/html; charset=UTF-8" />
<title>SheetJS Next.JS Demo</title>
</Head>
2023-05-26 22:50:23 +00:00
<h3>SheetJS Next.JS Demo</h3>
<p>
This demo reads from <code>/sheetjs.xlsx</code><br/>
</p>
<table><thead><tr><th>Route</th><th>NextJS Strategy</th></tr></thead><tbody>
<tr>
<td><a href="/getStaticProps"><code>/getStaticProps</code></a></td>
<td><code>getStaticProps</code></td>
</tr>
<tr>
<td><a href="/getServerSideProps"><code>/getServerSideProps</code></a></td>
<td><code>getServerSideProps</code></td>
</tr>
<tr>
<td><a href="/getStaticPaths"><code>/getStaticPaths</code></a></td>
<td><code>getStaticPaths</code></td>
</tr>
</tbody></table>
</> ); }