it's just a simple task getting me confused I want to get the data of the input field
I want to fetch it on to console
const MessageForm = ({ handleSubmit, onSubmit }) => (
<section className="form-container register-model-form">
<form className="message-form" onSubmit={handleSubmit(onSubmit)}>
<Input
label="Write a message..."
name="message"
type="text"
/>
</form>
</section>
);
MessageForm.propTypes = {
handleSubmit: PropTypes.func,
onSubmit: PropTypes.func
};
MessageForm.defaultProps = {
handleSubmit: noop,
onSubmit: noop
};
export default reduxForm({
form: "MessageForm"
})(MessageForm);
and here is my message .jsx
export default class Messages extends React.PureComponent {
render() {
return (
<section className="page-notifications">
<SubMenu/>
<MessageForm/>
</section>
)
}
}