Hopp til hovedinnhold

Innhold om Frontend

Totalt 322 innlegg

Side 21 av 22

The definite guide to lifecycle events!

Frontend
Artikkel (9 min)
Fra Kristofer Giltvedt Selbekk
22.12.2017

If you've been using React for any period of time, you've probably seen what React calls lifecycle methods. This article will give you a firm grip on when you want to use what.

Below the surface

Frontend
Artikkel (5 min)
Fra Kristofer Giltvedt Selbekk
21.12.2017

React is an amazing tool for many reasons. One of them is that it just works. Ever wondered about how exactly? Let's dive in for a quick look!

Understanding Webpack and Babel

Frontend
Artikkel (4 min)
Fra Kristofer Giltvedt Selbekk
20.12.2017

Most apps require some kind of build pipeline to bundle your application into downloadable files. This article will give you a very simple overview over how to get started!

Boost your performance!

Frontend
Artikkel (6 min)
Fra Kristofer Giltvedt Selbekk
19.12.2017

You can write some pretty fast and amazing apps with React without thinking twice about performance optimizations. However, there are some pretty cool tricks you can do whenever your app starts to slow down.

A bit about context

Frontend
Artikkel (4 min)
Fra Kristofer Giltvedt Selbekk
18.12.2017

Context is one of those features of React you rarely need to use - but understanding what it is and how it works makes you a much better developer!

Class property initializers

Frontend
Artikkel (3 min)
Fra Kristofer Giltvedt Selbekk
17.12.2017

Although not React specific, this technique has made our React code much simpler and easier to read. Say hello to class property initializers!

Functional vs class components

Frontend
Artikkel (5 min)
Fra Kristofer Giltvedt Selbekk
16.12.2017

In React, there are two types of components - functional and class-based. What's the difference and when should you use each one?

Documenting your components

Frontend
Artikkel (3 min)
Fra Kristofer Giltvedt Selbekk
15.12.2017

If you're writing components that are shared between different teams, or even different developers, documenting your components is a must. And it's crazy simple!

Check out type checking!

Frontend
Artikkel (6 min)
Fra Kristofer Giltvedt Selbekk
14.12.2017

JavaScript is a dynamically typed language. That means you don't have types to help you secure your apps from stupid bugs. Here's a few ways to avoid just that in your React apps!

An intro to routing in React

Frontend
Artikkel (4 min)
Fra Kristofer Giltvedt Selbekk
13.12.2017

Routing is usually one of the hardest parts of any web application. In React, however, they're not really anything different than regular components!

Split your app into pieces!

Frontend
Artikkel (4 min)
Fra Kristofer Giltvedt Selbekk
12.12.2017

With the rise of single page applications, we also got megabyte-sized bundles of JavaScript code to download and compile before we could show anything to the user. THIS ENDS NOW!

Component libraries

Frontend
Artikkel (2 min)
Fra Kristofer Giltvedt Selbekk
11.12.2017

If you're in a rush to get something production ready, you might not have the time or resources to create your own component library. Luckily, there are several pre-made ones to choose from!

What is this JSX business?

Frontend
Artikkel (4 min)
Fra Kristofer Giltvedt Selbekk
10.12.2017

One of the weirdest things to me when I started learning React was this JSX syntax. What is it? Where does it come from? And how can I make really cool stuff with this?

Introducing CSS-in-JS

Frontend
Artikkel (4 min)
Fra Kristofer Giltvedt Selbekk
09.12.2017

React did something pretty radical when introducing JSX - suddenly we were blending our logic and structure in the same file. Now, the time has come to include CSS as well!

Add error boundaries to your app!

Frontend
Artikkel (2 min)
Fra Kristofer Giltvedt Selbekk
08.12.2017

React 16 brought us a way to handle errors in a neat, declarative way