Open in app

Sign In

Write

Sign In

Luke Ghenco
Luke Ghenco

193 Followers

Home

About

Published in

Flatiron Labs

·Oct 16, 2019

How to Test React Hooks (The Async Ones)

An adventure in patience — As I have started writing new code using React hooks, I have noticed some occasional issues when testing components with async calls using the React.useEffect. I wanted to share some examples of some tricks I have learned and implemented in my own code. I’ve created a repo @ https://github.com/Lukeghenco/async-hook-testing…

JavaScript

6 min read

Testing Async React Hooks
Testing Async React Hooks
JavaScript

6 min read


Published in

Flatiron Labs

·Jan 16, 2019

How to use React Testing Library to rewrite an Enzyme Component test

A mini-rewrite case study of two testing libraries — Learnings from a recent conversion At Flatiron School, we have been adding a ton of new test coverage using Kent Dodd’s React Testing Library. Check out my other blog posts on React testing (Creating Readable Tests Using React Testing Library & Testing Async React Hooks)for some awesome tips on…

JavaScript

7 min read

How to use React Testing Library to rewrite an Enzyme Component test
How to use React Testing Library to rewrite an Enzyme Component test
JavaScript

7 min read


Published in

Flatiron Labs

·Oct 10, 2018

How To Use The React Context API (Pre-Hooks)

Reacting to Context If you’ve recently been hearing a lot about the new React Context API and wanted to know more about it, this post is for you. …

React

9 min read

How To Use The React Context API
How To Use The React Context API
React

9 min read


Published in

Flatiron Labs

·Sep 12, 2018

Creating Readable Tests Using React Testing Library

Learn how to test drive your React code with BDD testing. — At Flatiron School, we’ve started using React to build almost all of our new client-side projects, as well as converting some of our older Backbone + Marionette apps to React. This has led to a concise and more performant code base on our front end and allowed us to…

JavaScript

17 min read

Creating Readable Tests Using React Testing Library
Creating Readable Tests Using React Testing Library
JavaScript

17 min read


Published in

Flatiron Labs

·Jul 20, 2018

TIL: How to install Phoenix 1.4 Dev Beta

Now with Webpack as default asset bundler — Today I was trying to setup the new Phoenix 1.4 dev beta, because of its new default Webpack 4 setup (related: check out our recent post on how Flatiron School optimized Webpack for faster page loads). …

Elixir

2 min read

TIL: How to install Phoenix 1.4 Dev Beta
TIL: How to install Phoenix 1.4 Dev Beta
Elixir

2 min read


Mar 31, 2016

$resource : Create an Angular.JS app with a RESTful Rails API Pt.4

In part 1 we built a restful api using rails. In part 2 we built up our asset pipeline to use angular, and installed bower. In part 3 we built a basic angular app with nested routes using UI.router. In part 4 we are going to use $resource to make…

JavaScript

5 min read

JavaScript

5 min read


Mar 30, 2016

UI Router : Create an Angular.JS app with a RESTful Rails API Pt.3

Part: 3 Routing with ui.router — In this section we are going to use ui.router to make routes for our Note app. Step: 1 Building some routes Let’s delete our {{ “Hello “ + “World” }} from our app/views/application/index.html.erb and add the following code. # app/views/application/index.html.erb <div class="angular-view-container" ui-view></div> the ui-view is how ui.router …

JavaScript

4 min read

UI Router : Create an Angular.JS app with a RESTful Rails API Pt.3
UI Router : Create an Angular.JS app with a RESTful Rails API Pt.3
JavaScript

4 min read


Mar 30, 2016

Create an Angular.JS app with a RESTful Rails API Pt.2

Part 2: Adding Angular to the Rails Project Step: 1 To add angular to our rails project we need to add the bower rails gem to our #Gemfile #Gemfile gem 'bower-rails' Step: 2 Now we need to install the gem $ bundle install this will install bower so that we can start installing dependencies using bower. Step: 3 We need to initialize the bower.json…

JavaScript

4 min read

Create an Angular.JS app with a RESTful Rails API Pt.2
Create an Angular.JS app with a RESTful Rails API Pt.2
JavaScript

4 min read


Mar 5, 2016

Active Model Serializer Gem Tutorial

function newPath(language, time, effort){ }; newPath("JavaScript", 0, "100%"); I have officially been learning to code for 5 months now. The road has been a tough one for sure, but one of the most rewarding ones. Considering this time in September, 2015 I could not write a single line of code. …

Rails

3 min read

Rails

3 min read


Feb 18, 2016

An ever learning programer’s steps to using Devise, OmniAuth and ActiveRecord in a ‘Rails Project’

It’s been a couple of week since my last post, but I have returned with a new project to talk about. I am on my 10th week with Flatiron’s Learn Verified online coding bootcamp, and the difficulty has ramped up. …

Rails

5 min read

Rails

5 min read

Luke Ghenco

Luke Ghenco

193 Followers
Following
  • Adam Drake

    Adam Drake

  • chantastic

    chantastic

  • GoFundMe

    GoFundMe

  • Christophe Hamerling

    Christophe Hamerling

  • 松野“ちゃめぬこ”弘法

    松野“ちゃめぬこ”弘法

See all (102)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams