Tag

javascript

Exploring the useEffect API with Easy Examples

From React Hooks in Action by John Larsen

Some of our React components are super-friendly, reaching out to say “hi” to APIs and services outside of React. Although they’re eternally optimistic and like to think the best of all those they meet, there are some safeguards to be followed. In this article, we’ll look at setting up side effects in ways that won’t get out of hand. In particular, we’ll explore these four scenarios:

§ Running side effects after every render

§ Running an effect only when a component mounts

§ Cleaning up side effects by returning a function

§ Controlling when an effect runs by specifying dependencies

To focus on the API we’ll create some easy component examples. First up, let’s say “Bonjour, les side-effects.”

Automated JavaScript testing

From Testing JavaScript Applications by Lucas da Costa

Web Development Simplified

From Svelte and Sapper in Action by Mark Volkmann

Becoming a More Effective React Developer

From React Hooks in Action by John Larsen

Server-Rendered Web Apps with React and Next.js

From Next.js in Action by Adam Boduch

Mastering Unit Testing

From The Art of Unit Testing, Third Edition by Roy Osherove

Data Compression with Huffman’s Algorithm

From Algorithms and Data Structures in Action by Marcello La Rocca

This article discusses Huffman’s Algorithm: what it is and what you can do with it.

Design and Develop

Six questions for Paul McFedries, author of Web Design Playground: HTML and CSS the Interactive Way

Paul McFedries is a web designer, instructor, and the author of more than 100 books. You can find him all over the internet, including his own website.

Free eBook: Exploring JavaScript Testing

Free_eBook_Gordon

Chapters selected by Elyse Kolker Gordon

Free eBook: Back to Simple CSS

freeEbook_Farrell

Chapters selected by Ben Farrell

© 2020 Manning — Design Credits