Skip to content
This repository has been archived by the owner on Nov 8, 2020. It is now read-only.

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Samrith Shankar committed Jun 23, 2019
1 parent 519f474 commit e889d70
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,22 @@
npm install --save react-live-time
```

or

```bash
yarn add react-live-time
```

## Usage

```tsx
import * as React from 'react'
```javascript
import React from 'react';

import MyComponent from 'react-live-time'
import ReactLiveTime from 'react-live-time';

class Example extends React.Component {
render () {
return (
<MyComponent />
)
class MyApp extends React.Component {
render() {
return <ReactLiveTime time={Date.now()} />;
}
}
```
Expand Down

0 comments on commit e889d70

Please sign in to comment.