Skip to content

Commit a0b08f3

Browse files
committed
Update Readme with FAQ's section
1 parent 4f40bd7 commit a0b08f3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,19 @@ Please follow the README for individual repositories
8585
1. [React Tutorial Series](https://youtu.be/M-Aw4p0pWwg)
8686
2. [React Hooks Series](https://youtu.be/2p0N29Hn-Vk)
8787

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+
88101
## Useful Blogs
89102

90103
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

Comments
 (0)