0.2.4 • Published 4 years ago

@maferland/github-activity v0.2.4

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

NPM JavaScript Style Guide

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'))

License

MIT © maferland