Remove Best Practices Remove Code Remove Magazine
article thumbnail

React Children And Iteration Methods

Smashing Magazine

In this article, we’ll look at a React utility React.Children.toArray which lets us prepare the children prop for inspection and iteration, some of its shortcomings and how to overcome them — through a small open-source package, to keep our React code function the way it is deterministically supposed to behave, keeping performance intact.

article thumbnail

Ten Tips For The Aspiring Designer Beginners (Part 1)

Smashing Magazine

That’s right; I’ve parked day-to-day design work in favor of becoming someone very active in the design community, focusing on best practice design advice and scalable systems. The fact is that no one tells us that we should be working harder on making good connections rather than polishing our designs or code. Large preview ).

Design 132
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

article thumbnail

Improving JavaScript Bundle Performance With Code-Splitting

Smashing Magazine

Improving JavaScript Bundle Performance With Code-Splitting. Improving JavaScript Bundle Performance With Code-Splitting. It’s a common misconception that the code which is produced by the framework build tools (Webpack, for example) is fully optimized and cannot be improved upon any further. The answer lies in code-splitting.

Code 104
article thumbnail

Let’s Dive Into Cypress For End-to-End Testing

Smashing Magazine

We know that front-end testing is a set of practices for testing the UI of a web application, including its functionality. Makes sense — with these measures, we can ensure that our application is working correctly and that no future changes will break our code. Example: Finding My Articles in Smashing Magazine.

Testing 138
article thumbnail

It’s A (Front-End Testing) Trap! Six Common Testing Pitfalls And How To Solve Them

Smashing Magazine

Well, it’s simply an apt allegory when it comes to dealing with tests in a code base. These traps might feel like an unexpected ambush when you’re working on a code base, especially when doing so for a long time. They test units of code together, looking at their interaction. Integration tests have a broader scope.

Testing 137
article thumbnail

Three Insights I Gained While Researching Vue.js Accessibility

Smashing Magazine

Let’s progress from theoretical considerations into hands-on code. In the following code block, you see a component listing the newest problems in an online shop. With best practices and guidelines on accessibility, assistive technology and inclusive design patterns. More after jump! Online, and live. I’m the live region.

Strategy 143
article thumbnail

How To Benchmark And Improve Web Vitals With Real User Metrics

Smashing Magazine

Facing this code, one would (rightfully) say it does not perform well. It’s not fast code to run, and it could be optimized with different kinds of loops, or perform those tasks in a single loop. This helps taking action directly targeted to the issue instead of simply trusting general best practices. Large preview ).