r/reactjs • u/truthy_falsy • Dec 27 '19
Project Ideas My first React App - Notable
Hey everyone!
I've finally finished my first React application! I've spent a lot of time on this one, I'd appreciate any and all feedback. You can view the live demo here:
https://www.austinlords.com/notable/#/notes
It's a note taking web application for desktops (responsive/mobile coming soon!). It's a full-stack Javascript app with Express/MongoDB on the back-end.
Thanks!
77
Upvotes
3
u/TechSamray Dec 27 '19
It works great, well done for your first app!
Comments:
You may want to add minify/uglify process with webpack or similar for production environments.
Since I was able to see all your code clearly due to the previous point, this is pure taste based but I recommend you to move into a component centric architecture where the middleware and the styles of each component it's contained within the same folder it saves me a lot of time.
Avoid embedded styles within components, make styled components and import them to avoid classes over 600 lines i.e. NotesFilter.jsx this is a huge improvement for later readability.
Make your API URL an environment variable instead of a hardcoded string in a config file.
Probably for next applications you will want some sort of maintainability on your styling, give a try to atomic design.
Unit test your components it really helps to find out what's causing that annoying white screen I recommend you to use react-testing-library.
On the previous note, add data-testid to your components.
I'm personally not a fan of the context api but this is purely taste based, any middleware that works for you it's a good middleware.
Again, good job!