Skip to content

Conversation

@ergashoveldor
Copy link

@ergashoveldor ergashoveldor commented Mar 28, 2021

Loyiha mazmuni

Ushbu loyiha tasodifiy odamni rasmini ismini ,telefon nomeri va emaillarini chiqarib beradi
Bu yerda loyihangiz nimadan iboratligi va uni qanday ishlatish haqida ma'lumot bering.

Talablar:

1. Min:

  • Boshqalarning qilgan ishiga (video yoki maqolalarga) qaramasdan React bilan mustaqil kamida 1 ta app yoki o’yin tayyorlash.
  • React class componentlardanmas, Function componentlar bilan kod yozishi va state o’rniga hook’larni ishlatishi: https://reactjs.org/docs/hooks-intro.html
  • Loyiha kamida 5 ta component’dan iborat bo’lishi.
  • Bootstrap CSS framework ishlatish.
  • Har bir proyekt Github’ga yuklab borilgan bo’lishi va README yozilgan bo'lishi.

2. Max:

Copy link

@husan-eshonqulov husan-eshonqulov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kodni yaxshi yozibsiz Eldor. Code academyda o'rgatilmagan narsalardan ham foydalanibsiz. Bu zo'r. Keyin PropTypes yozish qolib ketgan ekan

Comment on lines +7 to +10
const [profileName, setProfileName] = useState("");
const [profileCell, setProfileCell] = useState("");
const [profileImage, setProfileImage] = useState("");
const [profileEmail, setProfileEmail] = useState("");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agar state'larni boshlang'ich qiymatini null toifasida bermoqchi bo'lsangiz, ularni bo'sh string'dan ko'ra null'ni o'zini berganiz yaxshiroq manimcha. Maslan const [profileName, setProfileName] = useState(null);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants