# react-user-profile

> Basic and lightweight user profile component to use inside React.

Latest version **1.0.3** (published 2018-12-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-user-profile
pnpm add react-user-profile
yarn add react-user-profile
bun add react-user-profile
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-12-05 |
| First published | 2018-12-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 122.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Kacper Geisheimer |
| Maintainers | karer |

## Links

- npm: https://www.npmjs.com/package/react-user-profile
- Repository: https://github.com/karer/react-user-profile
- Homepage: https://github.com/karer/react-user-profile#readme
- Issues: https://github.com/karer/react-user-profile/issues
- npm.io page: https://npm.io/package/react-user-profile

## Dependencies (1)

- [prop-types](https://npm.io/package/prop-types.md) ^15.6.2

## Recent versions

- 1.0.3 (latest) — 2018-12-05
- 1.0.2 — 2018-12-05
- 1.0.1 — 2018-12-05
- 1.0.0 — 2018-12-04

## README

# React UserProfile

[![npm version](https://img.shields.io/npm/v/react-user-profile.svg)](https://npmjs.com/package/react-user-profile) [![dependencies](https://img.shields.io/david/karer/react-user-profile.svg)](https://david-dm.org/karer/react-user-profile) ![license](https://img.shields.io/github/license/mashape/apistatus.svg)

## Installation

    npm i react-user-profile --save

## Example

```javascript
import React, { Component } from 'react'

import UserProfile from 'react-user-profile'

class App extends Component {
  render() {
    const photo = 'https://api-cdn.spott.tv/rest/v004/image/images/e91f9cad-a70c-4f75-9db4-6508c37cd3c0?width=587&height=599'
    const userName = 'Harvey Specter'
    const location = 'New York, USA'

    const comments = [
      {
        id: '1',
        photo: 'https://api-cdn.spott.tv/rest/v004/image/images/e91f9cad-a70c-4f75-9db4-6508c37cd3c0?width=587&height=599',
        userName: 'Mike Ross',
        content: 'Lorem ipsum dolor sit amet enim. Etiam ullamcorper. Suspendisse a pellentesque dui, non felis. Maecenas malesuada elit lectus felis, malesuada ultricies. Curabitur et ligula. ',
        createdAt: 1543858000000
      }
    ]

    return (
      <div style={{ margin: '0 auto', width: '100%' }}>
        <UserProfile photo={photo} userName={userName} location={location} initialLikesCount={121} initialFollowingCount={723} initialFollowersCount={4433} initialComments={comments} />
      </div>
    )
  }
}

export default App
```

---
_Source: https://npm.io/package/react-user-profile · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
