Hopp til hovedinnhold

Innhold om React

Totalt 143 innlegg

Side 4 av 10

Storybook: background change on prop change

React
Artikkel (7 min)
Fra Tobias Skjelvik
03.12.2021

Tired of manually changing the backgrounds in Storybook whenever you change the color theme of your component? With a few lines of code, storybook can automatically change the background color whenever certain props on your component change.

How to lazy render large data tables to up performance

React
Artikkel (4 min)
Fra Miina Lervik
02.12.2021

When working with large tables with many rows and columns you might find that your application is starting to lag. Especially if your table has a lot of custom styles, clickable rows or sortable columns, rendering can become an issue. In this post I'll show you how you can lazy render your table to make it fast and snappy!

Inside the React Core team

React
Artikkel (8 min)
Fra Rachel Nabors
24.12.2020

Deck the Halls With React Three Fiber

React
Artikkel (5 min)
Fra Ida Marie Vestgøte Bosch
23.12.2020

Earlier this year I tried using three.js within a React app. It wasn't straightforward, and I ran into quite a few problems. Since then, I've been eager to try out this library a co-worker told me about: react-three-fiber. Apparently, it could solve all my problems (ok, maybe only a few) and make it super easy to create cool animations with few lines of code. Say no more!

Create a generic table with React and Typescript

React
Artikkel (5 min)
Fra Miina Lervik
22.12.2020

When I first started out with Typescript I found it very difficult to create the correct types when making generic components. In this article we will create a generic Table component that can be used with any set of objects.

/** Make the nice list with JSDoc */

React
Artikkel (5 min)
Fra Kristofer Giltvedt Selbekk
21.12.2020

Documenting stuff is important, folks! Where would Santa be without his naughty and nice list? Let's spend a few minutes learning how you can improve the user experience of your components by adding a slash and a couple of stars in front of it!

4 steps for the getting your React code ready for Christmas

React
Artikkel (9 min)
Fra Nora Futsæter
20.12.2020

🎶 It's beginning to look at lot like Christmas...🎶 You have put up your favorite decorations, candle lights are sparkling in the windows and Christmas cookies are baking in the oven making a nostalgic scent. You can almost feel the Christmas spirit. But, wait a minute, what's that ruining this perfect Christmas feeling? Is it dirty react code?! There are “this”, a looong render method and even “classes” all over the place. With only four days left it's probably time to do some proper refactoring of your react code. Here are four steps which I have recognized to help me get going. It's time to roll up your sleeves.

How to force-refresh your app every once in a while

React
Artikkel (4 min)
Fra Kristofer Selbekk
19.12.2020

Rebuild static pages on-demand with incremental static regeneration

React
Artikkel (9 min)
Fra Ole Anders Stokker
18.12.2020

Building static pages with React is a great way to improve the experience of a website. But how do they work, and how can you still get the static pages to change when your data changes?

A Tale of a React Newbie

React
Artikkel (5 min)
Fra Tora Seim Gunstad
17.12.2020

My name is Tora, and I started working at Bekk this fall as a new React developer with a fresh Computer Science degree. I would like to share my journey into this new and exciting world with you!

Maintainable React components with Typescript

React
Artikkel (4 min)
Fra Joakim Gyllenskepp
16.12.2020

I often find myself coming into code bases that I haven't worked with before to fix a bug or add some new feature. This is honestly more often that not quite challenging.

Making sounds with React and Tone.js

React
Artikkel (4 min)
Fra Nicolai Fredriksen
15.12.2020

By utilizing Tone.js one could easily produce some sounds, and if you’re lucky it could be quite musical. In this article we’ll look at combining React with Tone.js to make a simple sequencer.

Reusing existing JavaScript-code in your React app

React
Artikkel (4 min)
Fra Sissel Fladby van Woensel Kooy
14.12.2020

A couple of years ago, a colleague and I created a small JavaScript application to toy around with some image processing techniques. I really enjoyed the project, and the other day I decided put the same functionality in my new React code. One way of doing this would be to rewrite the whole thing, and to be honest, it probably would not have been that much work. But it got me thinking, how would I go about injecting the already written code into my React application? I haven't done anything like this before, and if you haven't either, this is a blog post for you!

A Hot Chocolate Map with React Leaflet and TypeScript

React
Artikkel (5 min)
Fra Hanne Olsen
13.12.2020

For the last decade I've called Oslo my home. And aside from the usual goals of getting an education, landing a job and living my life, I've had a side quest: Finding the best places for hot chocolate in town.

Creating a Chrome Extension with React and TypeScript

React
Artikkel (13 min)
Fra Sivert Schou Olsen
12.12.2020

Did you know most Chrome extensions are written in good ol' JavaScript? Turns out, creating one with React is pretty straight forward, too! Let's look at how you can use your existing JavaScript skills to spread some holiday cheer!