React-Js Development For Steemit | React Events | Steem Alliance Community.

in hive-150122 •  2 years ago 

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”.

1.jpeg

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.

React Event
<button onClick={steemit}> welcome on steemit</button>

HTML DOM Event
<button onclick=“steemit()”> welcome on steemit</button> 

Hope you guys understand react events who it works. We will use in future steemit development.

20230310_190323_0000.png

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

🆃🅷🅰️🅽🅺 🆈🅾️🆄

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations, your post has been upvoted by @dsc-r2cornell, which is the curating account for @R2cornell's Discord Community.

Manually curated by @jasonmunapasee

r2cornell_curation_banner.png

Bro, why don't you use indentation in your code? This is a good practice in my opinion.