AXeL-dev / distract-me-not

:no_entry: A lightweight website blocker with a user friendly interface
https://addons.mozilla.org/addon/distract-me-not/
MIT License
122 stars 14 forks source link

Refactor legacy react code #26

Open AXeL-dev opened 3 years ago

AXeL-dev commented 3 years ago

This is just a reminder to refactor the legacy code (class components, scss styles, ...) & update the project dependencies.

Yes i know, that this would require to rewrite the code from scratch, which would take a significant amount of time, but anyway, this step is really important for the health & maintainability of the project.

Other suggestions: Rewrite using typescript? :thinking:

dannyk3941 commented 3 years ago

Does this mean you want to change to functional components and use useState hooks?

AXeL-dev commented 3 years ago

Does this mean you want to change to functional components and use useState hooks?

Yes exactly, perhaps use other hooks beside useState.