Skip to content

Commit 642cc18

Browse files
Update hyper-component.md
1 parent d2f8620 commit 642cc18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/dsl-client/hyper-component.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,8 @@ class UserIndex < HyperComponent
14631463
TableRow do
14641464
TableCell { "#{user.first_name} #{user.last_name}" }
14651465
TableCell { user.is_female ? 'Female' : 'Male' }
1466-
# below note the use of key so React knows which Component is which else the erong params can be passed
1466+
# note the use of key so React knows which Component this refers to
1467+
# this is very important for performance and to ensure the component is used
14671468
TableCell { UserDialog(user: user, key: user.id) } # this will render as an edit button
14681469
end
14691470
end

0 commit comments

Comments
 (0)