Skip to content

Installation

Mayank edited this page Jun 22, 2025 · 1 revision

πŸš€ Installation

Install via your package manager of choice:

npm install @m2d/react-markdown
# or
pnpm add @m2d/react-markdown
# or
yarn add @m2d/react-markdown

SSR vs Client

βœ… Server-Safe (Default)

import { Md } from "@m2d/react-markdown";

πŸ” Client-Side Rendering

import { Md } from "@m2d/react-markdown/client";

Use the client version if using dynamic JSX evaluation or useId.

Clone this wiki locally