Created
September 18, 2020 22:50
-
-
Save theednaffattack/76946c466a8f51601fd7d50e9cd6c2d8 to your computer and use it in GitHub Desktop.
typescript + eslint, strange error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ReactElement } from "react"; | |
import { frontMatter as blogPosts } from "./blog/*.mdx"; | |
import BlogPost from "../components/blog-post"; | |
const Blog = (): ReactElement[] => | |
blogPosts.map((frontMatter) => ( | |
<BlogPost key={frontMatter.title} {...frontMatter} /> | |
)); | |
export default Blog; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment