webcompat / webcompat-metrics-client

An application to power metrics for webcompat.com
https://webcompat-dashboard.herokuapp.com/
Mozilla Public License 2.0
10 stars 7 forks source link

improved codebase #388

Open magsout opened 3 years ago

magsout commented 3 years ago

I want to improved and made the codebase easier to maintain and understand. We use https://nextjs.org/ for the server and the client. So we can move local feature to nextjs features (like fetching data).

libraries

function components

Replaced class components by function components (by using react hook):

accessibility

added missing property like aria-*

fetching

Improved fetching by using getServerSideProps and swr

Then we could remove request

modules

renamed modules by normalizers then tests all functions.