Skip to content

Commit 4a0ca86

Browse files
committed
Added className and style attributes to OptimizedImage
1 parent 679a966 commit 4a0ca86

File tree

3 files changed

+277
-142
lines changed

3 files changed

+277
-142
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# lup-images
77
Node module for optimizing images in web applications.
88

9-
## Example
9+
## Example Server
1010
```javascript
1111
const { ImagesRequestHandler } = require('lup-images');
1212
const express = require('express');
@@ -17,3 +17,7 @@ app.use('/images/*', ImagesRequestHandler());
1717

1818
app.listen();
1919
```
20+
## Example JSX
21+
```jsx
22+
<OptimizedImage src="https://picsum.photos/200/300" width={200} height={300} />
23+
```

0 commit comments

Comments
 (0)