We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e2aac0 commit 99c33d0Copy full SHA for 99c33d0
components/example/exampleViewPosts.tsx
@@ -2,7 +2,7 @@ import styles from './example.module.scss';
2
import { ExamplePost } from './exampleType';
3
import PostSingle from './exampleViewPostSingle';
4
5
-const View = ({ data }) => {
+const View = ({ data }: { data: ExamplePost[] }) => {
6
const dataMapper = (post: ExamplePost) => <PostSingle key={post.id} post={post} />;
7
8
return <div className={styles.view}>{data.map(dataMapper)}</div>;
0 commit comments