Guest User

Untitled

a guest
Aug 20th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. import {Component, Fragment} from "react";
  2. import * as React from "react";
  3. import { MySimpleComponentA } from "./my-componentA";
  4. // import { MySimpleComponentB } from "./my-componentB";
  5. import { MySimpleComponentC } from "./my-componentC";
  6.  
  7. export class MyApp extends Component {
  8. public render() {
  9. return <Fragment>
  10. <MySimpleComponentA lastName="Cochard" /> {/*DOES NOT COMPILE*/}
  11. <MySimpleComponentA lastName="Cochard" firstName="Nicolas" /> {/*COMPILES, but I should not have to specify the first name.*/}
  12. {/*<MySimpleComponentB lastName="Cochard" />*/}
  13. <MySimpleComponentC lastName="Cochard" /> {/*COMPILE*/}
  14. </Fragment>;
  15. }
  16. }
Add Comment
Please, Sign In to add comment