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
Layout
Sidebar with note list and search; main area with editor and preview side by side (stacked on mobile).
- 2
Notes state
Array of {id, title, body, tags, pinned, updatedAt}; select one by id.
- 3
Editor
A textarea bound to the selected note; update updatedAt on change.
- 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
Search and tags
useMemo to filter notes by text and selected tag; pinned first, then newest.
- 6
Persist
localStorage, debounced so you do not write on every keystroke.
- 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