Working with refs in React

Refs make it possible to access DOM nodes directly within React. This comes in handy in situations where, just as one example, you want to change the child of a component. Let’s say you want to change the value of an <input> element, but without using props or re-rendering the whole component.

That’s the sort of thing refs are good for and what we’ll be digging into in this post.

How to create a ref

createRef() is a new API …

The post Working with refs in React appeared first on CSS-Tricks.

Read more

6 Common Problems When Logging into the WordPress Admin Area

WordPress is a powerful platform for everything from personal blogging to enterprise sites. It contains an excellent set of features to make it as easy as possible to create online publications, make it pleasant and convenient. Daily on the forums, there are many questions about the most common issues with WordPress, faced by beginners. WordPress …
The post 6 Common Problems When Logging into the WordPress Admin Area appeared first on Torque.
Read more

20+ Animated PowerPoint Templates (Free + Premium)

In this collection, we’re featuring some of the best, animated PowerPoint templates (both premium and free) to create stunning presentations filled with stylish object and transition animations. Designing a PowerPoint presentation is not an easy job. It requires a lot of work and time. When crafting presentations, most people completely ignore one of the key […]
Read more

Building Battleship in CSS

This is an experiment to see how far into an interactive experience I can get using only CSS. What better project to attempt than a game? Battleship seemed like a good challenge and a step up from the CSS games I’ve seen so far because it has the complexity of multiple areas that have to interact with two players.

Wanna see the complete game?

View Repo View Demo

Oh, you wanna learn how it works? Let’s dig in.

I could …

The post Building Battleship in CSS appeared first on CSS-Tricks.

Read more

​Task management has never been easier

(This is a sponsored post.)

monday.com is a team management tool that is exceptionally suitable for any industry sector and by any sized team. It will perfectly serve a team of two or a team of hundreds spread around the globe, and it can manage multiple projects at once.

monday.com promotes effortless collaboration and transparency, it’s “cheetah fast,” it displays status in as many as 20 different colors, and its status board can be customized to fit your needs …

The post ​Task management has never been easier appeared first on CSS-Tricks.

Read more

Understanding why Semantic HTML is important, as told by TypeScript

What a great technological analogy by Mandy Michael. A reminder that TypeScript…

makes use of static typing so, for example, you can give your variables a type when you write your code and then TypeScript checks the types at compile time and will throw an error if the variable is given a value of a different type.

In other words, you have a variable age that you declare to be a number, the value for age has to stay …

The post Understanding why Semantic HTML is important, as told by TypeScript appeared first on CSS-Tricks.

Read more

Creating the “Perfect” CSS System

My pal Lindsay Grizzard wrote about creating a CSS system that works across an organization and all of the things to keep in mind when starting a new project:

Getting other developers and designers to use the standardized rules is essential. When starting a project, get developers onboard with your CSS, JS and even HTML conventions from the start. Meet early and often to discuss every library, framework, mental model, and gem you are interested in using and take feedback …

The post Creating the “Perfect” CSS System appeared first on CSS-Tricks.

Read more