Skip to content

Commit

Permalink
Merge pull request #3 from ssi02014/dev
Browse files Browse the repository at this point in the history
v1.0.2
  • Loading branch information
ssi02014 committed Jun 17, 2023
2 parents 2a85176 + 0753430 commit 95bb9f5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
34 changes: 32 additions & 2 deletions README.md
Expand Up @@ -67,7 +67,7 @@ npm install react-step-parallax

<br />

### STEP 1️⃣
### STEP 2️⃣
```js
import StepParallax from 'react-step-parallax';

Expand Down Expand Up @@ -103,4 +103,34 @@ const App = () => {
}
```

<br />
<br />

## How to use Next.js(v13) 😊
### STEP 1️⃣
- Install library
```
yarn add react-step-parallax next-transpile-modules
or
npm install react-step-parallax next-transpile-modules
```

<br />

### STEP 2️⃣
- Modify next.config
```js
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
transpilePackages: ["react-step-parallax"],
};

module.exports = nextConfig;
```

<br />

### STEP 3️⃣
- the usage is the same as "React.js"

<br />
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "react-step-parallax",
"version": "1.0.1",
"version": "1.0.2",
"description": "react-step-parallax",
"main": "dist/index.js",
"module": "dist/index.js",
Expand Down

0 comments on commit 95bb9f5

Please sign in to comment.