Skip to content

Commit e56a27e

Browse files
committed
Add use client where it matters for RSC
1 parent a60f9f9 commit e56a27e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@crystallize/reactjs-components",
33
"license": "MIT",
4-
"version": "1.2.0",
4+
"version": "1.3.0",
55
"author": "Crystallize <[email protected]> (https://crystallize.com)",
66
"contributors": [
77
"Håkon Krogh <[email protected]>",

src/content-transformer/component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { Fragment, createContext, useContext, HTMLAttributes } from 'react';
1+
'use client';
22

3+
import { Fragment, createContext, useContext, HTMLAttributes } from 'react';
34
import { NodeProps, Overrides } from './types';
4-
55
export { NodeProps, Overrides };
66

77
export const Renderers = {

src/video/component.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 { useState, useEffect, useRef, FC } from 'react';
24
import { ImageVariant } from '@crystallize/js-api-client';
35
import { supportsDash, getDash } from './dash';

0 commit comments

Comments
 (0)