Skip to content

Instantly share code, notes, and snippets.

@rocksinghajay
Last active November 11, 2018 16:21
Show Gist options
  • Select an option

  • Save rocksinghajay/5d45a31f04aef38673b281f6286200e7 to your computer and use it in GitHub Desktop.

Select an option

Save rocksinghajay/5d45a31f04aef38673b281f6286200e7 to your computer and use it in GitHub Desktop.
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