You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/docs/src/frameworks/react.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,3 +35,16 @@ To process [local images](../usage/local-images.md) you will need to setup one o
35
35
The `@responsibe-image/cdn` package provides multiple helper functions to support [remote images](../usage/remote-images.md) served from different image CDNs for use with the `<responsive-image/>` component.
36
36
37
37
Please refer to the [image CDN](../cdn/index.md) guide for details on all supported options and examples of the respective image CDN.
38
+
39
+
## Separate stylesheet and JavaScript imports
40
+
41
+
The default export includes an import of the component's CSS. If this causes problems with your build setup you can import the JavaScript and CSS separately.
42
+
43
+
```diff
44
+
- import { ResponsiveImage } from "@responsive-image/react";
45
+
+ import { ResponsiveImage } from "@responsive-image/react/responsive-image.js";
> If you use Vite to build for server-side rendering you can add `@responsive-image/react` to the [ssr.noExternals](https://vite.dev/guide/ssr.html#ssr-externals) option in your Vite config.
0 commit comments