We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f40bd7 commit a0b08f3Copy full SHA for a0b08f3
README.md
@@ -85,6 +85,19 @@ Please follow the README for individual repositories
85
1. [React Tutorial Series](https://youtu.be/M-Aw4p0pWwg)
86
2. [React Hooks Series](https://youtu.be/2p0N29Hn-Vk)
87
88
+## FAQs
89
+
90
+1. How to pass a parameter in a event handler?
91
92
+```ruby
93
+const handleRemoveProductClick = ( event, productId ) => {
94
+ console.warn( 'Clicked productId', productId );
95
+ };
96
+return(
97
+ <button onClick={ ( event ) => handleRemoveProductClick( event, item.productId ) }>Item</button>
98
+)
99
+```
100
101
## Useful Blogs
102
103
1. [SetUp React App with Webpack and Babel](https://codeytek.com/set-up-react-app-with-webpack-and-babel-react-babel-webpack-install-node-application/)
0 commit comments