8000 Fix typos in the LiveComponent readme · symfony/ux@b2a5f1a · GitHub
[go: up one dir, main page]

Skip to content

Commit b2a5f1a

Browse files
authored
Fix typos in the LiveComponent readme
1 parent 372fca9 commit b2a5f1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/LiveComponent/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ class RandomNumberComponent implements LiveComponentInterface
525525

526526
When you trigger an action, a POST request is sent that contains
527527
a `X-CSRF-TOKEN` header. This header is automatically populated
528-
and violated. In other words... you get CSRF protection without
528+
and validated. In other words... you get CSRF protection without
529529
any work.
530530

531531
Your only job is to make sure that the CSRF component is installed:
@@ -674,7 +674,7 @@ a `post_form` component that we will create next:
674674
```
675675

676676
Ok: time to build that `post_form` component! The Live Components package
677-
come with a special trait - `ComponentWithFormTrait` - to make it easy to
677+
comes with a special trait - `ComponentWithFormTrait` - to make it easy to
678678
deal with forms:
679679

680680
```php
@@ -1051,7 +1051,7 @@ class EditUserComponent implements LiveComponentInterface
10511051
Be sure to add the `@Assert\IsValid` to any property where you want
10521052
the object on that property to also be validated.
10531053

1054-
Tahnks to this setup, the component will now be automatically validated
1054+
Thanks to this setup, the component will now be automatically validated
10551055
on each render, but in a smart way: a property will only be validated
10561056
once its "model" has been updated on the frontend. The system keeps track
10571057
of which models have been updated (e.g. `data-action="live#update"`)

0 commit comments

Comments
 (0)
0