Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import TaskList from './TaskList';
  3.  
  4. export default class App extends Component {
  5. constructor(props) {
  6. super(props)
  7. this.state = { data: [
  8. { id: 1, taskText: "task 1" },
  9. { id: 2, taskText: "task 2" }
  10. ]
  11. }
  12. }
  13.  
  14. render() {
  15. return (
  16. <div>
  17. <h4>Story-app</h4>
  18. <TaskList tasks={this.state.tasks} />
  19. </div>
  20. );
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement