Skip to content

Commit 256b0f2

Browse files
committed
add use client directive for nextjs support
1 parent df2afd6 commit 256b0f2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coin-mirror/react-lazy-image",
3-
"version": "0.1.5",
3+
"version": "0.1.6",
44
"private": false,
55
"description": "Simple react component to lazy-load images when they are visible. With support for blurhash.",
66
"exports": "./dist/index.js",

src/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client";
2+
13
import {
24
type MouseEventHandler,
35
useEffect,

0 commit comments

Comments
 (0)