diff --git a/package.json b/package.json index f10011c..4759ff9 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,9 @@ "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", - "eject": "react-scripts eject" + "eject": "react-scripts eject", + "deploy": "gh-pages -d build", + "predeploy": "npm run build" }, "eslintConfig": { "extends": [ diff --git a/public/index.html b/public/index.html index a0b8d37..d1c5c12 100644 --- a/public/index.html +++ b/public/index.html @@ -11,7 +11,7 @@ /> - React App + React App Movie Practice
diff --git a/src/App.js b/src/App.js index 77272cc..d70c7c6 100644 --- a/src/App.js +++ b/src/App.js @@ -7,8 +7,16 @@ function App() { return ( - } /> - } /> + } + /> + } + /> ); diff --git a/src/components/Movie.js b/src/components/Movie.js index 901cbd9..02e34d1 100644 --- a/src/components/Movie.js +++ b/src/components/Movie.js @@ -9,7 +9,7 @@ function Movie({ id, img, genres = [], title, score, content }) {
{title}
- + {title}

{genres.join(", ")}

diff --git a/src/router/Detail.js b/src/router/Detail.js index 6087e2b..84687b8 100644 --- a/src/router/Detail.js +++ b/src/router/Detail.js @@ -4,6 +4,7 @@ import styles from "../css/Detail.module.css"; function Detail() { const { id } = useParams(); + console.log(id); const [movieData, setMovie] = useState({}); useEffect(() => {