UNPKG

framework7-cli

Version:
35 lines (32 loc) 781 B
import React from 'react'; import { Page, Navbar, Block, List, ListItem } from 'framework7-react'; export default class extends React.Component { constructor(props) { super(props); this.state = { user: props.f7route.context.user, }; } render() { const user = this.state.user; return ( <Page> <Navbar title={`${user.firstName} ${user.lastName}`} backLink="Back" /> <Block strong> {user.about} </Block> <List> {user.links.map((link, index) => ( <ListItem key={index} link={link.url} title={link.title} external target="_blank" ></ListItem> ))} </List> </Page> ); } }