Generating it in the JSX like this will cause the key to change on every render. Whenever the key changes, React will destroy and re-create these elements, which can have a big negative impact on performance.
This pattern — generating the key when the data is first created — can be applied to a wide range of situations.
Demak , in conclusion, It is not the best solution.😉
@Diyorbekk_dev
Post #750
110
Diyorbek.dev | 👨🏻💻 Bilamizki array ichidagi elementlarni render qilganimizda bir xil bo'lmagan (unique ) key kerak bo'ladi. (so that React can identify each item). Nima deb oylaysiz, agar biz key sifatida "uuid" bersak yaxshi yechim bo'laoladimi?
