Hello Everyone,
How are you guys, I hope all will be well and good, by the grace of God, I am also feeling well. My responsibility in this community is as a development manager. I have started the consistently tutorial base program to spread the knowledge of programming and development.
In the last post, I shared the knowledge about conditional rendering. In this tutorial, I have the select the topic “React Events”.
React Events
React Events are very important in development to make the react application. React events are used to develop the interactive and dynamic front end. Basically events are used to handle the action of users that they perform in react application. It provide the facility to user to interact with app such as scrolling, clicking and hovering etc. The most commonly react events are shared below.
- onClick
- onBlur
- onSubmit
- onChange
React events are written in camelCase format. Event handlers refer the functions to use events.
function steemitButton() {
console.log(‘steemit submit post button clicked’);
}
function App(){
return (
<button onClick={steemitButton}>
Post Submit
</button>
);
}
Using react events, steemit front end can make more responsive and friendly. For example, a user submit a post and click on submit button the we can show a pop up window with displaying any message.
There are some difference between the react event and html event but the working hierarchy of both events are same.
<button onClick={steemit}> welcome on steemit</button>
<button onclick=“steemit()”> welcome on steemit</button>
Hope you guys understand react events who it works. We will use in future steemit development.
Please cast witness vote to @bangla.Witness or set proxy to @rme.
_
Vote @bangla.witness as witness
Set Proxy @rme as proxy
Special Thanks.
Cc: @rme
Cc: @hungry-griffin
Cc: @stephenkendal
Thanks for giving your precious time to my post.
Follow | Upvote | Share | Comments
Follow me on Instagram.
Instagram
🆃🅷🅰️🅽🅺 🆈🅾️🆄
Congratulations, your post has been upvoted by @dsc-r2cornell, which is the curating account for @R2cornell's Discord Community.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Bro, why don't you use indentation in your code? This is a good practice in my opinion.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit