@maferland/github-activity
v0.2.4
Published
Component displaying github activities
Downloads
3
Readme
Table of Contents
Installation
npm install --save @maferland/github-activity
// or
yarn add @maferland/github-activity
Usage
import React from 'react'
import ReactDOM from 'react-dom'
import { UserActivityFeed } from '@maferland/github-activity'
function App() {
const [username, setUsername] = React.useState('maferland')
return (
<>
<form>
<label htmlFor='username'></label>
<input
id='username'
value={username}
onChange={(event) => setUsername(event.target.value)}
></input>
</form>
<div style={{ width: '800px' }}>
<UserActivityFeed username={username} />
</div>
</>
)
}
ReactDOM.render(<App />, document.getElementById('root'))