Skip to content

Commit

Permalink
Use TypeScript in all README examples
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Jul 19, 2023
1 parent 41e841a commit 9347331
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Add React-Clock to your project by executing `npm install react-clock` or `yarn

Here's an example of basic usage:

```js
import React, { useEffect, useState } from 'react';
```tsx
import { useEffect, useState } from 'react';
import Clock from 'react-clock';

function MyApp() {
Expand All @@ -52,7 +52,7 @@ function MyApp() {

If you want to use default React-Clock styling to build upon it, you can import React-Clock's styles by using:

```js
```ts
import 'react-clock/dist/Clock.css';
```

Expand Down

0 comments on commit 9347331

Please sign in to comment.