Category – React.js
39 posts tagged with "React.js" (See all categories)

DDocker NGinx 405 POST Not Allowed

08/18/20191 Min Read — In Docker, React.js, DevOps

Today it took me over one hour to debug an error with Docker and Nginx. Every time I tried to submit a form with a POST method, NGinx gave me a 405 error: "405 Not Allowed". I originally thought that…

SStill Learning TDD

08/14/20191 Min Read — In Lab, React.js

Nothing much to report. I'm still learning TDD with Python (Flask) and React.js. I'm using Jest and Enzyme for React. Testing React components feels very abstract to me. Kent C. Dodds wrote two…

FFriday Picks #13

08/09/20191 Min Read — In DevOps, LISP, Lab, Vim, React.js

Here are some things I've found useful this week or that I enjoyed: Production-ready Docker images - a guide to Docker with Python Programming Algorithms: A Crash Course in Lisp - a course on data…

LLearn About Gatsby Themes

07/08/20191 Min Read — In Lab, JavaScript, React.js

Yesterday I finished Introduction to Gatsby , a beginners course by Jason Lengstorf, hosted by Frontend Masters. Gatsby is a static site generator for JavaScript/React.js. It pre-builds your website…

LLearning About State Management

07/02/20191 Min Read — In JavaScript, React.js, Lab

Today I listened to a React Podcast episode where Michel Weststrate was a guest . He talked about state management, MobX , and Immer , his new library. Listening to talk like these, and the ideas…

FFriday Picks #8

06/28/20191 Min Read — In TypeScript, JavaScript, React.js, Node.js

Here are some things I've found useful this week or that I enjoyed: TypeScript Weekly - a newsletter for TypeScript How YOU can use Nest to build a GraphQL API - a tutorial that walks you through…

SSimple Frontend Pagination in React

06/25/20191 Min Read — In JavaScript, React.js

I'm a big fan of Brad Traversy and this video is one of the reasons why: If you have some rudimentary knowledge of React.js, you should be able to follow Brad's instructions. As always, he offers…

RReact.js - How to Fetch Data

06/24/20191 Min Read — In JavaScript, React.js

If you want to know more about data fetching with hooks, you can read these two articles, too: A Complete Guide to useEffect & How to fetch data with React Hooks? . For a short video tutorial on…

FFriday Picks #7

06/21/20191 Min Read — In TypeScript, JavaScript, React.js

Here are some things I've found useful this week or that I enjoyed: You don't need passport.js - Guide to node.js authentication - Santiago Quinteros explains how authentication in Node.js…

TTIL: How to Pass Props to React Router

06/16/20191 Min Read — In React.js, JavaScript

Just a short note: Today I learned that you shouldn't pass props to React Router with the component attribute, but with render . From the Docs : When you use component (instead of render or…

RReact Components

05/27/20191 Min Read — In React.js, JavaScript

You can do a lot of nifty things with React when you think about how you can use functions in JavaScript. At the moment, I'm learning more about reusable components and composing components together…

FFriday Picks #2

05/17/20191 Min Read — In React.js, JavaScript, ClojureScript

Here are some things I've found useful this week or that I enjoyed: The Ultimate Guide To Learning Code And Getting Paid: How To Find Your First Software Engineering Job in 2019 Reintroducing React…

FFree React Function Component Workshop

05/16/20191 Min Read — In JavaScript, React.js

There's an interesting (free) YouTube livestream about React today. It's by Michael Chan ( @chantastic ), React Podcast host. I liked it because it's beginner-friendly but still covers design…

FFriday Picks #1

05/10/20191 Min Read — In React.js, JavaScript, Vim, ClojureScript

Here are some things I've found useful this week or that I enjoyed: Full Stack Radio: 114: Sebastian De Deyne - React for Vue Developers React Redux TypeScript Guide Intro to React Hooks Full Stack…

FFocus on JavaScript

05/09/20191 Min Read — In React.js, JavaScript

I've decided to dial back my interests and to focus on JavaScript/React.js, front-end tech, and clean code/architecture . Maybe I'll throw in some ClojureScript... Work has picked up and I have…

RReact useEffect Bug

05/08/20191 Min Read — In React.js

I've spent tons of hours trying to understand how the React Hook useEffect works and how I can avoid memory leaks. At this point, my best guess is that it's a bug. Related issues: setState hook…

PPersistence

05/05/20191 Min Read — In JavaScript, React.js

I'm still trying to figure out what causes a memory leak with my useEffect custom React Hook. I read tons of articles (I recommend Dan Abramov's ) but I haven't found the solution. My custom data…

RReact Hooks: useEffect Cleanup

05/04/20191 Min Read — In JavaScript, React.js

Currently I'm wrangling with cleaning up my data fetching functions with useEffect . I return a function that React can run when it unmounts, see React Documentation . In my example, I use the…

LLearning More About React Hooks

04/30/20191 Min Read — In JavaScript, React.js

I'm extensively using React Hooks . There are new patterns to learn and some pitfalls to avoid. Here are some good resources that help with learning more about Hooks: A Simple Intro to React Hooks…

RReact useState Hook

04/29/20191 Min Read — In JavaScript, React.js

I'm now writing my React apps with Hooks . I'm accustomed to the way setState() worked: state updates may be asynchronous and updates were merged . That's why I used functions instead of…

MMy Favorite Front End Web Podcasts

04/27/20191 Min Read — In JavaScript, React.js

At my last MeetUp we talked about our favorite podcasts. Here is a list of web development podcasts for JavaScript, web development, React.js which I listen to. It might be useful for you. Front End…

LLearning React TypeScript Patterns

04/01/20191 Min Read — In React.js, TypeScript

I'm learning TypeScript at the moment (as well as dabbling in other things like Elixir, React Hooks, GraphQL ...). But I find it hard to apply my knowledge. It's all fine and dandy to know what…

CCreating Protected Routes in React Router

03/23/20191 Min Read — In React.js

Yesterday I was wondering how I could protect routes in React.js. I have a back-end application written in Node.js which uses middleware ( Passport-Next and a requireLogin helper) to protect the…

RRedux: Why?

03/21/20191 Min Read — In DevTools, JavaScript, React.js

Redux is a common tool that's used with React. It creates a central "store". This store holds your data (the React state). You can connect your React components to the store to read data or use…

RReact: useEffect Hook - Yes/No?

03/01/20191 Min Read — In React.js

I'm learning how to handle React Hooks . The article Getting Hooked on React Hooks helped me clear up some misunderstandings. But I'm still not sure how to use the Effect Hook when it's supposed…

RRefactoring to React Hooks

02/27/20191 Min Read — In React.js

The new version of React, React 16.8 was released this month - and it finally has Hooks . From the official announcement : Hooks let you use state and other React features without writing a class…

SSecret Keys in React

02/25/20191 Min Read — In React.js

Create-React-App allows you to set environment variables. This is often used to store secret keys, for example, API Keys. You need those to authenticate a request to a third party service (i.e. a…

BBasic Particle.js Setup for React

01/29/20191 Min Read — In React.js

You can create stunning backgrounds with Particles.js . Luckily, a kind soul has implemented this library as a React component: react-particles-js . react-particles-js is easy to use but it can be…