Blog
{post.title}
{formatDisplayDate(post.date)}
{post.tags.map((tag) => (
#{tag}
))}
import React from "react"; import ReactMarkdown from "react-markdown"; import { BLOG_POSTS } from "./blogData"; const formatDisplayDate = (dateString) => new Date(`${dateString}T00:00:00`).toLocaleDateString(undefined, { year: "numeric", month: "short", day: "numeric" }); export default function BlogPost({ postId, onBack }) { const post = BLOG_POSTS.find((p) => p.id === postId); if (!post) { return (
Not Found
This post doesn't exist.
Blog
{formatDisplayDate(post.date)}