Skip to content

Conversation

@diegolanda
Copy link
Contributor

@diegolanda diegolanda commented May 22, 2017

Currently this component:

import * as React from 'react';

export interface IAppMenuProps {
  /** Menu items */
  menu: any;
}

export interface IAppMenuState {
  menu: any;
}

/**
 * App Menu Component
 * 
 * Renders a menu in horizontal mode
 */
export class AppMenu extends React.Component<IAppMenuProps, IAppMenuState> {
  constructor(props, context) {
    super(props, context);
    this.state = {
      menu: this.props.menu
    };

    this.handleClick  = this.handleClick.bind(this);
  }

  componentWillReceiveProps(newProps: IAppMenuProps) {

  }

  handleClick( info ) {

  }

  render() {
    return (
      <div onClick={this.handleClick}>
        test
      </div>
    );
  };
}

Returns a cannot getText() of undefined
Methods have two name: undefined objects at the beginning and at the end

@pvasek pvasek merged commit ce2497c into styleguidist:master May 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants