Repository URL to install this package:
Version:
0.14.1 ▾
|
import React from 'react'
// @todo - name innerRef > setRef
export const FormElement = props => {
const { setRef, className, formId, handleSubmit, ...remainingProps } = props
return (
<form
ref={setRef}
{...remainingProps}
id={formId}
onSubmit={handleSubmit}
className={className}
/>
)
}
/**
* @todo - <Button> attom !!!!!!!!
*/
export const SubmitButton = props => <button {...props} />
export const CancelButton = props => <button {...props} />