React
A JavaScript library for building user interfaces from small, reusable components.
- Type
- UI library
- Created by
- Meta, open source (MIT license)
- Language
- JavaScript or TypeScript
- In my stack
- Web dashboards and internal tools
What it is
React lets you describe what the screen should look like for a given state, and it updates the page for you when that state changes. You never write “find this element and change its text”. You change the data, and the interface follows.
Everything is built from components: a button, a form, a findings table, a whole page. A component is a function that takes data and returns UI, so the same piece is reused across the app and can be tested on its own. React itself only handles the view. Routing, data fetching and server rendering come from the tools around it, such as Next.js.
Why I use it
It scales with the product. A dashboard that starts with three screens and grows to thirty stays organized, because every screen is assembled from the same tested parts.
One way of working on web and mobile. React Native uses the same model, so the web dashboard and the mobile app share patterns, TypeScript types and often validation code.
The ecosystem is huge. Tables, charts, forms, date pickers, accessibility tooling: most frontend problems already have a well-maintained library.
It’s easy to hand over. React is one of the most widely used UI libraries, so clients can find developers to maintain and extend what I build.
Where I use it
In the HR management system, React powers the web dashboard: the side of the system where HR staff and managers handle employee records, approve leave requests and review attendance, including everything employees recorded offline, once it has synced.
The dashboard talks to the same Go backend as the React Native mobile app.
Best use cases
- Dashboards and back-office tools with a lot of interactive state: filters, sortable tables, forms, live updates.
- Complex forms: multi-step flows, conditional fields and validation that gives feedback as you type.
- Products that will grow for years and be maintained by more than one developer.
- Web apps with a mobile twin, where sharing knowledge and code with React Native saves time.
When I’d use something else
For a mostly static site, like a company brochure or this portfolio, React is more than you need: plain HTML and CSS load faster and leave nothing to maintain. This site has no React in it at all. For public pages that depend on search traffic, I use React through Next.js so pages are rendered on the server, rather than as a client-only app.
A small example
A list of findings with a status filter. There is no code that updates the list: change the state, and React redraws it.
function FindingList({ findings }) {
const [status, setStatus] = useState("open");
const visible = findings.filter(f => f.status === status);
return (
<section>
<select value={status} onChange={e => setStatus(e.target.value)}>
<option value="open">Open</option>
<option value="closed">Closed</option>
</select>
<ul>
{visible.map(f => <li key={f.id}>{f.title}</li>)}
</ul>
</section>
);
}