You might've heard about "pure functions". Maybe also about "side effects" or "impure functions". There is no wrong or right here - you will need all these things in most applications, but it is crucial to understand what these terms actually means and what you should watch out for.
Related Premium Courses
React - The Complete Guide
React allows you to translate state to UI changes. Learn it A to Z with this bestselling course!
VueJS - The Complete Guide
VueJS is a popular alternative to React - this 5* rated course teaches it in-depth!
Learn the most important programming language of the web in great depth with this top-rated course!