render() {

    // no need to propagate everything to everything
    const propOb = (this.props.propagate || ["dispatch","accounts","auth"])
    .reduce ((p,c) => {
      p[c] = this.props[c];
      return p;
    },{});
    
    // using data- tags to clone props - like this, any regular html elements
    // will not complain if they receive a tag they dont like
    const xcs = 
      <span>
          { React.cloneElement(this.props.children, propOb) }
      </span> ;
    return (
      <MenuWrapper>
        <TAService tutorial = {this.props.tutorial} dispatch = {this.props.dispatch} />
        {xcs}
      </MenuWrapper>
    );
  
  }
/**
   * rendering will only start if we have initial keys to play with
   * otherwise we show something else
   */
rendering will only start if we have initial keys to play with
otherwise we show something else
rendering will only start if we have initial keys to play with otherwise we show something else
render() {
    const propOb = (this.props.propagate || ["dispatch","accounts","auth"])
    .reduce ((p,c) => {
      p[c] = this.props[c];
      return p;
    },{});
    const xcs = 
      <span>
          { React.cloneElement(this.props.children, propOb) }
      </span> ;
    return (
      <MenuWrapper>
        <TAService tutorial = {this.props.tutorial} dispatch = {this.props.dispatch} />
        {xcs}
      </MenuWrapper>
    );
  }
render ( ) { const propOb = ( this . props . propagate || [ "dispatch" , "accounts" , "auth" ] ) . reduce ( ( p , c ) => { p [ c ] = this . props [ c ] ; return p ; } , { } ) ; const xcs = < span > { React . cloneElement ( this . props . children , propOb ) } < / span > ; return ( < MenuWrapper > < TAService tutorial = { this . props . tutorial } dispatch = { this . props . dispatch } / > { xcs } < / MenuWrapper > ) ; }
rendering will only start if we have initial keys to play with
 otherwise we show something else
rendering will only start if we have initial keys to play with otherwise we show something else
// no need to propagate everything to everything // using data- tags to clone props - like this, any regular html elements // will not complain if they receive a tag they dont like