Skip to content

Instantly share code, notes, and snippets.

@theednaffattack
Created September 18, 2020 22:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theednaffattack/76946c466a8f51601fd7d50e9cd6c2d8 to your computer and use it in GitHub Desktop.
Save theednaffattack/76946c466a8f51601fd7d50e9cd6c2d8 to your computer and use it in GitHub Desktop.
typescript + eslint, strange error
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