Skip to content

Commit 0a03812

Browse files
authored
📝 update Readme usage example (#277)
1 parent 577b316 commit 0a03812

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,17 @@ In your `App.js` :
7070
```jsx
7171
import React from 'react';
7272
import ReactDOM from 'react-dom';
73-
import { Carousel } from 'react-lite-ui';
73+
import { Card } from 'react-lite-ui';
7474

7575
class App extends React.Component {
7676
render() {
77-
const data = [
78-
"https://images.pexels.com/photos/371633/pexels-photo-371633.jpeg?cs=srgb&dl=wood-landscape-sky-371633.jpg&fm=jpg",
79-
"https://hanslodge.com/images/pTqrL9Rec.jpg",
80-
"https://images.pexels.com/photos/248797/pexels-photo-248797.jpeg?cs=srgb&dl=sea-landscape-nature-248797.jpg&fm=jpg"
81-
];
82-
return <Carousel data={data} theme={componentTheme} />;
77+
return (
78+
<Card
79+
header="Card header"
80+
>
81+
Card content
82+
</Card>
83+
);
8384
}
8485
}
8586

0 commit comments

Comments
 (0)