🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101

Markdown notes app

A notes app with a live Markdown preview, search, tags and pinned notes.

Beginner⏱ 6–8 hoursđŸĒœ 7 stepsReactreact-markdown

What you'll learn

  • ◆Controlled inputs
  • ◆Rendering Markdown safely
  • ◆Derived state with useMemo

What you'll build

  • ✓Create, edit, delete notes
  • ✓Live Markdown preview
  • ✓Search and tag filter
  • ✓Pin important notes

Step-by-step guide

  1. 1

    Layout

    Sidebar with note list and search; main area with editor and preview side by side (stacked on mobile).

  2. 2

    Notes state

    Array of {id, title, body, tags, pinned, updatedAt}; select one by id.

  3. 3

    Editor

    A textarea bound to the selected note; update updatedAt on change.

  4. 4

    Preview

    npm i react-markdown remark-gfm; <ReactMarkdown remarkPlugins={[remarkGfm]}>{body}</ReactMarkdown>. It does not render raw HTML by default, which keeps it safe.

  5. 5

    Search and tags

    useMemo to filter notes by text and selected tag; pinned first, then newest.

  6. 6

    Persist

    localStorage, debounced so you do not write on every keystroke.

  7. 7

    Shortcuts

    Ctrl+N for a new note, Ctrl+K to focus search.

🚀 Make it stand out

  • +Export a note as .md
  • +Code highlighting in the preview
  • +Sync with a backend and login