https://github.com/fabiosantoscode/user
User interfaces to read user properties
https://github.com/fabiosantoscode/user
Last synced: 11 months ago
JSON representation
User interfaces to read user properties
- Host: GitHub
- URL: https://github.com/fabiosantoscode/user
- Owner: fabiosantoscode
- License: other
- Created: 2015-11-11T13:14:31.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-27T10:45:44.000Z (over 9 years ago)
- Last Synced: 2025-01-17T22:46:38.265Z (about 1 year ago)
- Language: JavaScript
- Size: 34.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# User
> Class that provides interfaces to read user data
## Usage
**This component expects an ES6 environment**, and so if you are using this in an app,
you should drop in a polyfill library - it has been tested with [babel-polyfill] but
[core-js] or [es6-shim] may also work.
[babel-polyfill]: https://babeljs.io/docs/usage/polyfill/
[core-js]: https://www.npmjs.com/package/core-js
[es6-shim]: https://www.npmjs.com/package/es6-shim
The default export is a React Component, so you can simply import the component and use
it within some JSX, like so:
```js
import User from '@economist/user';
return ;
```
For more examples on usage, see [`src/example.es6`](./src/example.es6).
## Install
```bash
npm i -S @economist/user
```
## Run tests
```bash
npm test
```