0
0
mirror of https://github.com/yude-jp/yude.jp synced 2025-10-13 03:38:36 +09:00

Prepare for SSG

This commit is contained in:
2021-12-11 18:55:57 +09:00
parent 86844984d2
commit b446a2ebae
24 changed files with 133 additions and 77 deletions

View File

@@ -1,7 +1,11 @@
// React
import React, { useState, useEffect } from 'react';
// Data fetching
import axios from 'axios';
import useTranslation from 'next-translate/useTranslation'
import { useRouter } from 'next/router'
// i18n
import { useTranslation, useLanguageQuery } from 'next-export-i18n';
function App (){
const [data, setData] = useState({ hits: [] });

View File

@@ -1,4 +1,7 @@
// React
import React, { useState, useEffect } from 'react';
// Data fetching
import axios from 'axios';
const App = () => {