Remove link
article thumbnail

Designing Better Links For Websites And Emails: A Guideline

Smashing Magazine

Designing Better Links For Websites And Emails: A Guideline. Designing Better Links For Websites And Emails: A Guideline. Why are “click here” and “by this link” poor choices? Check the equipment policy by the link. Meaningful Links. Download Links. Links vs. Buttons. Link-Rich Texts.

Website 141
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.

Insiders

Sign Up for our Newsletter

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

Trending Sources

article thumbnail

Next.js Wildcard Subdomains

Smashing Magazine

With 100s of real-life examples , guidelines and best practices that you can apply right away. In code, that looks like this: export async function getServerSideProps(context) { let wildcard = context.req.headers.host.split(".")[0]; More after jump! From complex mega-dropdowns to carousels and filters. Online, and live.

Servers 84
article thumbnail

Gone Floating Labels And Green Lighthouse Scores

Smashing Magazine

Also, if you have released an open-source tool and would love to draw more attention to it, please let us know as well and we’d love to have you presenting your project here in the magazine as well. Workflow & Code. Workflow, Code. Workflow, Code. Workflow, Code. Workflow, Code. Workflow, Code.

Mobile 140
article thumbnail

Implementing A Reset Password Feature With Next.js Dynamic Routes

Smashing Magazine

They click on the “password-reset” link, and they’re redirected to the corresponding page. When they type their email address or username into the input field, they click on the button which has the common “email me a recovery link” text. They get a confirmation that a secure link has been sent to their email. More after jump!

article thumbnail

Performance Game Changer: Browser Back/Forward Cache

Smashing Magazine

In another tab, load [link]. Now open another new tab and load [link] again. Now, in that tab, click on an article link from [link] and, once it’s loaded, click back — much faster yeah? 400 pages , jam-packed with in-depth user research and best practices. Here’s an experiment for you.

Cache 91
article thumbnail

Solving CLS Issues In A Next.js-Powered E-Commerce Website (Case Study)

Smashing Magazine

To cross verify if layout shift is occurring while mouseover is on the image, we used the below code snippet from [link] which adds console.log when layout shift occurs: let cls = 0; new PerformanceObserver((entryList) => { for (const entry of entryList.getEntries()) { if (!entry.hadRecentInput) Large preview ). Large preview ).

Website 106