src/views/ListDetail.js
/**
   * Runs on server and client.
   */
Runs on server and client.
Runs on server and client .
componentWillMount () {
    if (__SERVER__) {
      console.log("Hello server");
    }
    if (__CLIENT__) {
      console.log("Hello client");
    }
  }
componentWillMount ( ) { if ( __SERVER__ ) { console . log ( "Hello server" ) ; } if ( __CLIENT__ ) { console . log ( "Hello client" ) ; } }
Runs on server and client.
Runs on server and client .
/**
       * This is only run on the server, and will be removed from the client build.
       */ /**
       * This is only run on the client.
       */