git clone https://github.com/h662/cra-tailwind-template-2.git review-english
cd folder
npm install
npm run start
npm i react-router-dom
import { BrowserRouter, Routes, Route } from "react-router-dom";
import Main from "./pages/main";
import Day from "./pages/day";
const App = () => {
return (
<BrowserRouter>
<Routes>
<Route path="/" element={<Main />} />
<Route path="/:day" element={<Day />} />
</Routes>
</BrowserRouter>
);
};
export default App;
const Main = () => {
return <div>main</div>;
};
export default Main;
import { useParams } from "react-router-dom";
const Day = () => {
const { day } = useParams();
return <div>Day {day}</div>;
};
export default Day;
https://cloud.google.com/text-to-speech?hl=ko