How kurniawan26/character-counter works
Project type and purpose
• This is a single-page React application (built with Vite) that implements a “character counter” UI challenge.
• Users type or paste text into an editor, and the app displays: character/word/sentence counts (with or without spaces), letter-density analysis, reading time estimate, and theme selection.
File structure
• Top-level files:
• index.html – the HTML shell for the SPA
• vite.config.js – Vite build/dev configuration
• eslint.config.js, package.json/lock – linters and dependencies
• public/ – static assets (fonts, images) served as-is
• src/ – application source code:
• main.jsx – React entry point hooking into index.html
• App.jsx & App.hook.jsx – root component and custom hook for state/logic
• components/ – presentational and container components (AppBar, TextArea, CardInformation, LetterDensity)
• utils/index.js – pure functions computing counts, densities, reading time
• styles/index.css – global / Tailwind CSS imports
README for additional insights
• Confirms use of React + Tailwind CSS
• Mobile-first, semantic HTML, Flexbox/CSS Grid
• Emphasis on UX states (hover, focus) and theme toggling