Many Nepali companies send freshers a small take-home assignment after the CV screening, and a todo app is one of the most common. The task looks simple on purpose: reviewers are checking how you work, not whether you can make a list appear.
What reviewers actually check#
- Does it work? Every listed requirement is done and there are no console errors.
- Code quality: small components, clear names, no copy-pasted blocks, no unused code.
- Git history: small, meaningful commits instead of one "final commit".
- README: they can run it in under two minutes.
- Polish: loading, empty and error states, a responsive layout, basic accessibility.
- Honesty: you say what you skipped and why.
Step 1: Clarify the requirements#
Read the brief twice and list every requirement as a checklist. A typical brief:
- Add, edit, delete and complete todos.
- Filter by All / Active / Completed.
- Persist todos after a page reload.
- Responsive on mobile.
If anything is unclear (for example, "should todos sync with an API?"), email the recruiter to ask. Asking good questions is a positive signal. If you cannot get an answer, write your assumption in the README.
Step 2: Choose a simple, familiar stack#
Use what the job post mentions, or what you know best: for example React + Vite + TypeScript, or Next.js if the role uses it. Do not learn a new framework for a take-home task. Use localStorage for persistence unless an API is required.
Step 3: Use a clean folder structure#
todo-app/
├── src/
│ ├── components/
│ │ ├── TodoForm.tsx
│ │ ├── TodoItem.tsx
│ │ ├── TodoList.tsx
│ │ └── FilterBar.tsx
│ ├── hooks/
│ │ └── useTodos.ts # state + localStorage logic
│ ├── types/
│ │ └── todo.ts
│ ├── App.tsx
│ └── main.tsx
├── src/__tests__/
│ └── useTodos.test.ts
├── README.md
└── package.jsonKeep logic out of components: a useTodos hook that adds, toggles, deletes and filters todos is easy to read and easy to test.
Step 4: Commit like a professional#
Commit after each small step, with messages that explain the change:
chore: scaffold Vite React TypeScript project
feat: add todo form with validation
feat: toggle and delete todos
feat: filter todos by status
feat: persist todos in localStorage
test: cover useTodos add/toggle/delete
docs: add README with setup and decisionsNever commit node_modules, .env files or build output. Check your .gitignore before the first push.
Step 5: Handle the details#
- Validation: do not allow empty or whitespace-only todos; trim the input.
- Empty state: "No todos yet. Add your first task above."
- Accessibility: a
<label>for the input, real<button>elements, a visible focus style, and checkboxes for completion. - Keyboard: pressing Enter submits the form.
- Responsive: test at a 360 px width, which is common on budget Android phones.
Step 6: Add a few meaningful tests#
You do not need 100% coverage. Three to five tests for the core logic show that you value testing:
import { renderHook, act } from '@testing-library/react';
import { useTodos } from '../hooks/useTodos';
test('adds and completes a todo', () => {
const { result } = renderHook(() => useTodos());
act(() => result.current.add('Prepare for interview'));
const id = result.current.todos[0].id;
act(() => result.current.toggle(id));
expect(result.current.todos[0].completed).toBe(true);
});Step 7: Write a README the reviewer will love#
# Todo App
Live demo: https://your-todo-app.vercel.app
## Features
- Add, edit, delete and complete todos
- Filter: All / Active / Completed
- Saved in localStorage
## Tech stack
React 19, TypeScript, Vite, Vitest, React Testing Library
## Run locally
```bash
npm install
npm run dev # http://localhost:5173
npm test
```
## Decisions and trade-offs
- Used localStorage because the brief did not require a backend.
- Kept state in a custom hook instead of Redux: the app is small.
## What I would add with more time
- Drag-and-drop ordering
- Sync with a backend APIStep 8: Deploy checklist (Vercel or Netlify)#
- Push the repository to GitHub and make it public (or invite the reviewer if it must stay private).
- Import the repository on Vercel or Netlify. For Vite, the build command is
npm run buildand the output folder isdist. - Open the live URL on your phone and in an incognito window.
- Check the browser console: there should be no errors.
- Put the live link at the top of the README and in your submission email.
Step 9: Submit on time, with a short email#
Subject: Take-home assignment: Todo App – Anisha Shrestha
Dear Hiring Team,
Please find my submission below:
- Repository: https://github.com/anisha/todo-app
- Live demo: https://anisha-todo.vercel.app
I have listed my assumptions and possible improvements in the README. Thank you for the opportunity; I look forward to your feedback.
Best regards, Anisha Shrestha
Submit before the deadline. If you are going to be late for a genuine reason, tell them early and ask for an extension.