React – Anti-patterns to be avoided
Initializing the state using properties Issues We have a duplicated source of truth because “Props” and “State” hold a similar value. It’s unclear which is […]
Initializing the state using properties Issues We have a duplicated source of truth because “Props” and “State” hold a similar value. It’s unclear which is […]
Not using state correctly Investigation The reason for the reduction in performance as soon as the number of items grows is that the list re-renders […]
What is a Universal Application? A Universal application is an application that can run both on the server- and the client-side with the same code.React […]
React state “setState” method Every time the state changes, React runs the render function again.However, in some cases, we may want to perform some operations […]
How to avoid relative path when importing library? Folder structure Turn library into a module Turn library into a module so that Node can find […]
How to run a test and update snapshot? How to setup React Native testing? reactnativetesting.io How to configure jest? Cannot use import statement outside a […]
React Native is known for its amazing performance in most of the applications: 60 FPS Stateful vs Stateless vs React.PureComponent “Stateless” is better than regular […]
Declarative programming React offers a declarative approach makes it easy to use, and consequently, the resulting code is simple, which often leads to fewer bugs […]
How to create a class by Builder pattern like this Create Model Add Builder Add constructor Make parameters required Tip: Auto generate Builder by IntelliJ […]
How many are there? “Is there anywhere in this project where I’ll have to change the same thing in multiple places?”A project that’s as reusable, […]
Copyright © 2024 | WordPress Theme by MH Themes