Last active
November 11, 2018 16:21
-
-
Save rocksinghajay/5d45a31f04aef38673b281f6286200e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| const stateLessFunctional = (props) => { | |
| const onSubmitting = () => { | |
| alert('This is stateless functional component example'); | |
| } | |
| return( | |
| <div> | |
| <h2> | |
| Stateless functional component | |
| </h2> | |
| <input type="button" value="Submit" onClick={this.onSubmitting} /> | |
| </div> | |
| ) | |
| } | |
| export default stateLessFunctional; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment