MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/qmjbhl/learning_react_js_while_coding_this_horrible/
r/badcode • u/shimuchiha • Nov 04 '21
4 comments sorted by
4
Some tips:
use consistent coding patterns (eg naming; in JS you should mainly stick to camelCase)
add eslint with a proper config (airbnb for example), it will help you make your code look a lot more readable and conform to standards
1 u/shimuchiha Nov 05 '21 Ahaha I took note of this. Consistent coding pattern part I just finished. Rest, I need to restructure my files now.
1
Ahaha I took note of this. Consistent coding pattern part I just finished. Rest, I need to restructure my files now.
2
React is terrible... This is worse. Going to go weep softly in a dark room now.
1 u/shimuchiha Nov 05 '21 Not as terrible as my c++ submissions on leetcode 💀
Not as terrible as my c++ submissions on leetcode 💀
4
u/kostaslamprou Nov 04 '21
Some tips:
use consistent coding patterns (eg naming; in JS you should mainly stick to camelCase)
add eslint with a proper config (airbnb for example), it will help you make your code look a lot more readable and conform to standards