Commit fbcfa15
fix: event declartion and handler (#929)
## Description
### Why
* 'ReactEvent' is obsolete, it raises error when compiling, change it to
'Action'.
* 'eventHandler' is a member of the component, it raises render error
without 'this.'
## Screenshots
<img width="378" alt="ReactEvent error"
src="https://github.com/microsoft/react-native-windows-samples/assets/4596887/35213737-c374-4c0b-8ea4-0da16cb86ae2">
<img width="459" alt="ReactEvent Obsolete"
src="https://github.com/microsoft/react-native-windows-samples/assets/4596887/3661add7-508f-4808-b742-190a3c625ad0">
<img width="385" alt="eventHandler not defined"
src="https://github.com/microsoft/react-native-windows-samples/assets/4596887/99a9b1c4-4c5e-4bb9-a860-b11da9031a2d">
###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/react-native-windows-samples/pull/929)
Co-authored-by: Jon Thysell <jthysell@microsoft.com>1 parent 722e302 commit fbcfa15
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
| 506 | + | |
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
511 | | - | |
| 511 | + | |
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
| |||
0 commit comments