Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. class BankTransactions extends React.Component {
  2. constructor(props) {
  3. super(props);
  4.  
  5. this.state = { transactions: [] };
  6.  
  7. this.handleChange = this.handleChange.bind(this);
  8. }
  9.  
  10. render() {
  11. return this.state.transactions.map((transaction) => {
  12. return (
  13. <div>
  14. <DatePicker
  15. onChange={this.handleChange}
  16. value={transaction.date}
  17. />
  18. <TextField
  19. onChange={this.handleChange}
  20. value={transaction.balance}
  21. />
  22. </div>
  23. );
  24. });
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement