DEV Community

Discussion on: 1 small tip to improve your code readability

scroung720 profile image

When working with animations and rendering. I found this pattern pretty useful, usually the first thing that you do in your rendering is to detect if something has changed, if nothing has changed then do nothing and skip to the next call.