How React Reconciliation Works

React is fast! Some of that speed comes from updating only the parts of the DOM that need it. Less for you to worry about and a speed gain to boot. As long as you understand the workings of setState(), you should be good to go. However, it’s also important to familiarize yourself with how this amazing library updates the DOM of your application. Knowing this will be instrumental in your work as a React developer.

The DOM?

The …

The post How React Reconciliation Works appeared first on CSS-Tricks.

Read more

The Ultimate Guide to Headless CMS

(This is a sponsored post.)

The World Has Changed—So Must the CMS

Having a responsive website is no longer enough. Your audience expects a seamless and personalized customer experience across all their devices—the age of headless technology is coming.

Headless CMS is the next generation in content management for brands that want to stay ahead of the curve by engaging customers through the growing number of channels.

Download The Ultimate Guide to Headless CMS ebook for a deep look …

The post The Ultimate Guide to Headless CMS appeared first on CSS-Tricks.

Read more

30+ Clean & Minimal Landing Page Templates

You may already know about the power of landing pages. It’s one of the greatest online marketing strategies many businesses use. Instead of directing your traffic to a website homepage, sending traffic to a landing page is a great way to increase conversions. Did you know that 48% of marketers build new landing pages for […]
Read more

Designing Swappable Search Request Implementations – Code Review Part 4

In the last article, we identified that the task of generating posts, albeit arbitrary, is just one possible implementation of getting content for a search query. As such, we split the tasks of “getting content” and “generating posts” into separate methods. This design sets us up for a discussion about designing swappable search request implementations. …
The post Designing Swappable Search Request Implementations – Code Review Part 4 appeared first on Torque.
Read more

Responsive tables, revisited

Lea Verou with some extra super fancy CSS trickery. No way we could miss linking this one up!

One of the problems with responsive table solutions, at least the ones where you are using CSS to rejigger things, is that there is duplicated content somewhere. Either in CSS or HTML.

Lea finds two ways to prevent that. One of which uses text-shadow to “duplicate” a copy of the text and move it into place. Another uses the Firefox-only element() function. …

The post Responsive tables, revisited appeared first on CSS-Tricks.

Read more

Advanced OOP For WordPress Pt. 4: Setting Up With WordPress Test Suite For Integration Testing

In my previous articles in this series, I showed how to structure a WordPress plugin using object-oriented PHP. Then I covered unit testing. Unit tests cover each component, totally isolated from all other parts of the system. Unit tests should not be concerned with how the object interacts with any dependencies including the database and …
The post Advanced OOP For WordPress Pt. 4: Setting Up With WordPress Test Suite For Integration Testing appeared first on Torque.
Read more

The backdrop-filter CSS property

I had never heard of the backdrop-filter property until yesterday, but after a couple of hours messing around with it I’m positive that it’s nothing more than magic. This is because it adds filters (like changing the hue, contrast or blur) of the background of an element without changing the text or other elements inside.

Take this example where I’ve replicated the iOS notification style: see how the background of each of these boxes are blurred but the text isn’t?…

The post The backdrop-filter CSS property appeared first on CSS-Tricks.

Read more

A Strategy Guide To CSS Custom Properties

CSS preprocessor variables and CSS custom properties (often referred to as “CSS variables”) can do some of the same things, but are not the same.

Practical advice from Mike Riethmuller:

If it is alright to use static variables inside components, when should we use custom properties? Converting existing preprocessor variables to custom properties usually makes little sense. After all, the reason for custom properties is completely different. Custom properties make sense when we have CSS properties that change relative …

The post A Strategy Guide To CSS Custom Properties appeared first on CSS-Tricks.

Read more