Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react'
- import PropTypes from 'prop-types'
- function People (props) {
- const {item} = props
- return (
- <tr>
- <td>{item.id}</td>
- <td>{item.username}</td>
- <td>{item.email}</td>
- <td>{item.phone}</td>
- </tr>
- )
- }
- People.propTypes = {
- item: PropTypes.object,
- }
- export default People;
Add Comment
Please, Sign In to add comment