The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Building a React.js App - ES6 Refactor: Non Components

Building a React.js App - ES6 Refactor: Non Components

9:49
In this video, we’ll walk through refactoring all of our non component files to utilize new ES6 features like the module system, template strings, destructuring, and arrow functions.
Watch this lesson now
Avatar
egghead.io

In this video, we’ll walk through refactoring all of our non component files to utilize new ES6 features like the module system, template strings, destructuring, and arrow functions.

Avatar
egghead.io

The lesson video has been updated!

Avatar
Viktor Jančík

When trying to go back (using Backspace, or the back arrow button in Chrome), from a profile page to a home page, the home page doesn't get loaded. Why is this?

Also, when first entering a profile page through the submit on the Home component, it appears two entries of the "transition event" get entered into the history, as I can go back (same way as described above), twice before the URL changes to the home page. The first "back" doesn't do anything. Is this a bug? Thanks!

Avatar
Danny Rizko

What is the language package and syntax theme you're using?

Avatar
KWANGYOUNG KIM

Hi, I have a question about string interpolation.
In my case, helpers.js makes request like this

https://api.github.com/users/$%7Busername%7D

in helpers.js, I wrote the code below like the lesson

function getRepos(username){
return axios.get('https://api.github.com/users/${username}/repos')
}

what's the problem?

Avatar
KWANGYOUNG KIM

Oh noooooo, I misunderstood back quote as quote. T.T
I solved my problem.

In reply to KWANGYOUNG KIM
Avatar
Russell

My webkit doesn't compile

{ notes } = this.props;
|                 ^

6 | return (

the object destructuring. I added stage-2 and everything I could find online. No effect. Any ideas?

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?