Guest User

Untitled

a guest
Feb 19th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. // @flow
  2.  
  3. import React, { Component } from 'react';
  4. import logo from './logo.svg';
  5. import './App.css';
  6.  
  7. type Props = {
  8. name: string,
  9. age: number,
  10. DOB: number,
  11. nationality: string
  12. };
  13.  
  14. class App extends Component { // flow is highlighting component - too few type arguments
  15. render() {
  16. return (
  17. <div className="App">
  18. <header className="App-header">
  19. <img src={logo} className="App-logo" alt="logo" />
  20. <h1 className="App-title">Welcome to React</h1>
  21. </header>
  22. <p className="App-intro">
  23. To get started, edit <code>src/App.js</code> and save to reload.
  24. </p>
  25. </div>
  26. );
  27. }
  28. }
  29.  
  30. function blah() { - - eslint should tell me off for this
  31. return 4;
  32. }
  33.  
  34. someFunction(); - eslint should tell me off for this
  35.  
  36. export default App;
Add Comment
Please, Sign In to add comment