Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class BankTransactions extends React.Component {
- constructor(props) {
- super(props);
- this.state = { transactions: [] };
- this.handleChange = this.handleChange.bind(this);
- }
- render() {
- return this.state.transactions.map((transaction) => {
- return (
- <div>
- <DatePicker
- onChange={this.handleChange}
- value={transaction.date}
- />
- <TextField
- onChange={this.handleChange}
- value={transaction.balance}
- />
- </div>
- );
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement