Guest User

Untitled

a guest
Nov 13th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import React, { Component } from "react";
  2. import logo from "./logo.svg";
  3. import "./App.css";
  4. import Form from "./Form";
  5.  
  6. class App extends Component {
  7.  
  8. onSubmit = (fields) => {
  9. console.log("app values: ", fields);
  10. };
  11.  
  12.  
  13. render() {
  14. return (
  15. <div className="App">
  16. <Form onSubmit ={fields => this.onSubmit(fields)} />
  17. </div>
  18. );
  19. }
  20. }
  21.  
  22. export default App;
Add Comment
Please, Sign In to add comment