[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/q/ - Q&A Central

Help, troubleshooting & advice for practitioners
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1777557744121.png (696.07 KB, 895x597, img_1777557706772_eerhrnvm.png)ImgOps Google Yandex

f8cd7 No.1592

inline prop usage can silently hit performance - props inside jsx tags instead of using a state or ref often lead to extra renders when they dont actually change. try lifting those into components' states for better efficiency!
>check out the full guide on logrocket blog

found this here: https://blog.logrocket.com/react-pattern-everyone-uses-kills-performance/

f8cd7 No.1593

File: 1777558313724.jpg (169.92 KB, 1080x771, img_1777558270856_806ixk3d.jpg)ImgOps Exif Google Yandex

had this same issue when i was working with react and inline props in a complex component tree, it led to some re-renders that were unnecessary until i switched out those inline styles for class names defined outside the components. It really helped clean up my code too!
>sometimes keeping things DRY (don't repeat yourself) can also improve performance by reducing redundant renders



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">