The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Juan Salvador (14) [Avatar] Offline
Whe I replaced the next code

class Logo extends Component {

    render() {
        return <img onClick={this.props.handleClick}

const Logo = (props)=>{
    return <img onClick={props.handleClick} 

a blank screen is shown, the only message in the console says "witing for roots to load ...". Please note, that a prop needs to added to the img: role="presentation".

Any help is welcome !

Muzietto (19) [Avatar] Offline
If I understand correctly your words, you are not able to compile ES6 arrow functions with webpack+babel.

Well, actually I have found problems with arrow functions notation also in chapter 3, pages 58/59: the example of the IIFE is crap, and the code that goes with the book avoids carefully to implement that example.

AFAIK, in order to have arrow functions inside JSX components, it is necessary to equip Babel for the task.

I am able to compile arrow functions (except the one in ch3 that I mentioned before!) using the settings suggested in:

Good luck!
Azat Mardan (41) [Avatar] Offline
Most modern browsers should process => just fine without Babel. Make sure you get the recent MEAP and the recent code from