Conversation
bahriddin
left a comment
There was a problem hiding this comment.
Boshlanishiga juda yaxshi. Assoan, componentalarni ajratishda takliflar bor.
otabek/README.md
Outdated
| @@ -0,0 +1,70 @@ | |||
| # Getting Started with Create React App | |||
There was a problem hiding this comment.
Reactning readmesini o'chirib, loyihangiz haqida yozing.
otabek/src/SearchMovies.js
Outdated
| <form className="form" onSubmit={searchMovies}> | ||
| <label htmlFor="query" className="label"> | ||
| <h3>Movie Name</h3> | ||
| </label> | ||
| <input | ||
| className="input" | ||
| type="text" | ||
| name="query" | ||
| placeholder="i.e. Harry Potter" | ||
| value={query} | ||
| onChange={(e) => setQuery(e.target.value)} | ||
| ></input> | ||
| <button className="button" type="submit"> | ||
| Search | ||
| </button> | ||
| </form> |
There was a problem hiding this comment.
Shu qismni to'liq component qilib ajrating.
| <form className="form" onSubmit={searchMovies}> | |
| <label htmlFor="query" className="label"> | |
| <h3>Movie Name</h3> | |
| </label> | |
| <input | |
| className="input" | |
| type="text" | |
| name="query" | |
| placeholder="i.e. Harry Potter" | |
| value={query} | |
| onChange={(e) => setQuery(e.target.value)} | |
| ></input> | |
| <button className="button" type="submit"> | |
| Search | |
| </button> | |
| </form> | |
| <Form onSubmit={searchMovies} /> |
otabek/src/SearchMovies.js
Outdated
| <div className="card-list"> | ||
| {movies | ||
| .filter((movie) => movie.poster_path) | ||
| .map((movie) => ( | ||
| <MovieCard | ||
| key={movie.id} | ||
| img={movie.poster_path} | ||
| title={movie.title} | ||
| date={movie.release_date} | ||
| rating={movie.vote_average} | ||
| desc={movie.overview} | ||
| /> | ||
| ))} | ||
| </div> |
There was a problem hiding this comment.
Buniyam CardList deb alohida component qilib ajrating.
otabek/src/components/Tasbih.js
Outdated
| @@ -0,0 +1,43 @@ | |||
| import React, { useState } from "react"; | |||
There was a problem hiding this comment.
Shunchaki mashq uchun yozilgan edi. 33 gacha sanaydigan counter buttonlar :)
bekji
left a comment
There was a problem hiding this comment.
Hammasini bilasizku, yana eslatma bo'ldi. PropTypes ishlatsez bo'ldi menimcha. Zo'r yozibsiz lekin!
otabek/src/components/Form.js
Outdated
| @@ -0,0 +1,22 @@ | |||
| import React from "react"; | |||
|
|
|||
| export default function Form(props) { | |||
There was a problem hiding this comment.
Parameter olayotganda destructuring ishlatsangiz, qolgan joylarda props. deb yozib o'tirmaysiz.
otabek/src/components/MovieCard.js
Outdated
| @@ -0,0 +1,23 @@ | |||
| import React from "react"; | |||
|
|
|||
| export default function MovieCard(props) { | |||
There was a problem hiding this comment.
bu yerda ham shu ({ img, title, date, rating, desc }) kabi
| import Form from "./Form"; | ||
| import CardList from "./CardList"; | ||
|
|
||
| export default function SearchMovies(props) { |
Loyiha mazmuni
React Movie Search app
Talablar:
1. Min:
2. Max: