plausible / analytics

Simple, open source, lightweight (< 1 KB) and privacy-friendly web analytics alternative to Google Analytics.
https://plausible.io
GNU Affero General Public License v3.0
19k stars 1.02k forks source link

Refactor: Move from class to function components in React #4198

Closed RobertJoonas closed 4 weeks ago

RobertJoonas commented 1 month ago

Changes

This PR is only a refactor, and doesn't change any behaviour. The goal is to modernise the React app and move from class components to function components. Also an attempt to make the code more readable and remove unnecessary/dead functionality.

Note that this PR doesn't get rid of all class components - several still exist around the codebase.

Reviewing commit-by-commit recommended since I believe there's hardly any overlap between commits - each is doing its own thing.

Tests

Changelog

Documentation

Dark mode