Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- render() {
- var accounts = this.props.accounts.map((account, index) =>
- <li className="list-group-item" key={index}>{account[0]}<br />
- <button type="button" >Go to Login</button>
- <button type="button" >Log out</button>
- </li>
- );
- return (
- {accounts && (
- <ul className="accounts-list list-group">{accounts}</ul>
- )}
- )
- }
- {
- "offer": [
- "id",
- "price-input"
- ],
- "offer_message": [
- "id",
- "msg-textarea"
- ]
- }
- forms = Object.entries(this.props.forms).forEach(([key, value]) =>
- <div className="form-group">
- {value}
- </div>
- )
- return (
- {forms}
- )
- =>
- (
- <div className="form-group">
- {value}
- </div>
- )
Add Comment
Please, Sign In to add comment