You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
Thanks for this awesome tutorial. I learned good react design here. But I do find a place that could be better.
It's in Part 3 - Conditional Operations. In UpdateDialog component, when we define the form input, we set
<pkey={this.props.employee.entity[attribute]}>
This works most of the time, but it can't guarantee the key uniqueness. If firstName = lastName, we will have a problem. If we set
<pkey={attribute}>
It can solve this problem because attributes are different by design. I notice we use this key assignment in CreateDialog component. So UpdateDialog component should follow the same pattern, right?
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
Thanks for this awesome tutorial. I learned good react design here. But I do find a place that could be better.
It's in Part 3 - Conditional Operations. In UpdateDialog component, when we define the form input, we set
This works most of the time, but it can't guarantee the key uniqueness. If firstName = lastName, we will have a problem. If we set
It can solve this problem because attributes are different by design. I notice we use this key assignment in CreateDialog component. So UpdateDialog component should follow the same pattern, right?
Thanks
The text was updated successfully, but these errors were encountered: