Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sktguha
on Sept 3, 2020
|
parent
|
context
|
favorite
| on:
React is becoming a black box
couldn't you just write the same function to handle the prop in both componentDidMount and componentDidUpdate ?
ng12
on Sept 3, 2020
[–]
Sure, but you still have to know to do that and to do it correctly by checking whether the relevant values have changed in componentDidUpdate.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: