-
Notifications
You must be signed in to change notification settings - Fork 0
Otabek #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Otabek #1
Conversation
bahriddin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reactning readmesini o'chirib, loyihangiz haqida yozing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tushunarli.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes qilamiz.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bu nima?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shunchaki mashq uchun yozilgan edi. 33 gacha sanaydigan counter buttonlar :)
bekji
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test
bekji
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parameter olayotganda destructuring ishlatsangiz, qolgan joylarda props. deb yozib o'tirmaysiz.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
destructuring qildim
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bu yerda ham shu ({ img, title, date, rating, desc }) kabi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| import Form from "./Form"; | ||
| import CardList from "./CardList"; | ||
|
|
||
| export default function SearchMovies(props) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bu yerda props kerak emas shekilli
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
props ochirildi.
Loyiha mazmuni
React Movie Search app
Talablar:
1. Min:
2. Max: