UNPKG
svf
Version:
latest (0.2.5)
0.2.5
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0
0.0.1
A simple validate form and React-based implementation
svf
/
es
/
button
/
Button.js
10 lines
(7 loc)
•
211 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
React
from
"react"
;
const
Button
= (
{
type
, children, onSubmit }
) => {
return
(
<
button
className
=
"btn"
type
=
{
type
}
onClick
=
{
onSubmit
}>
{ children }
</
button
>
) };
export
default
Button
;