Skip to content

Commit 9fef678

Browse files
authored
Merge pull request #48 from ssi02014/dev
docs: README.md
2 parents 32cff75 + 4334035 commit 9fef678

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969

7070
## Features 😁
7171

72+
- **Optimized for browsers. Limited availability on mobile.**
7273
- Download thumbnail images
7374
- Resize the canvas
7475
- Fill the background with colors or pictures
@@ -159,7 +160,7 @@ npm install react-thumbnail-generator next-transpile-modules
159160
<br />
160161

161162
### STEP 2️⃣
162-
- Modify next.config
163+
- Modify `next.config`
163164
```js
164165
/** @type {import('next').NextConfig} */
165166
const nextConfig = {
@@ -173,17 +174,14 @@ module.exports = nextConfig;
173174
<br />
174175

175176
### STEP 3️⃣
176-
- Add `<ThumbnailGenerator>` to dynamic import.
177+
- Add `<ThumbnailGenerator>` component.
177178

178179
```jsx
179-
import dynamic from "next/dynamic";
180-
import Image from "next/image";
180+
import ThumbnailGenerator from 'react-thumbnail-generator';
181181

182182
export default function Home() {
183183
return (
184-
<ThumbnailGenerator
185-
buttonIcon={<Image src={buttonIcon} width={30} height={30} alt="buttonIcon" />}
186-
/>
184+
<ThumbnailGenerator />
187185
);
188186
}
189187

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-thumbnail-generator",
3-
"version": "3.0.3",
3+
"version": "3.0.4",
44
"description": "react-thumbnail-generator",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

0 commit comments

Comments
 (0)