Improve Your Bad React and TypeScript Programming Habits

York Harrison
Webtips
Published in
5 min readFeb 26, 2022

--

Get rid of your bad programming habits and be a self-disciplined person

Improve Your Bad React and TypeScript Programming Habits | Tomoe
Photo by Giancarlo Duarte on Unsplash

What is the purpose of your programming? Do you get the job done? Are you tough on yourself while doing the job? Thinking of copy-pasting?

Have you ever been asked by your boss to hurry up and deliver the project, you just want to write the code as soon as possible, but don’t pay attention to the quality of the code

When you are faced with a huge module, have you done a good job of component splitting? Or do you just want to keep copy-pasting on top of it, completing one “action” after another that you think is great?

When refactoring, do you have rough architectural design ideas?

“Writing TS genre is too complicated, too many, I don’t want to write, I just want to write any” — no, please don’t do it, some things you do once, there will be a second time, please do a self- disciplined person

If you have the above problems, then through some cases in this article, I hope to help you get rid of those “bad habits”

Project base file

Does your project integrate tools such as eslint prettier husky? If not, hurry up and do it first, because everyone’s coding style is different, you don’t even know…

--

--