Skip to content

Invalid character in shouldComponentUpdate method in generated component #2

@darth10

Description

@darth10

An invalid character (Â) is generated after the shouldComponentUpdate function name in a newly generated component.

  /*
   * boolean shouldComponentUpdate(object nextProps, object nextState)
   * see: https://facebook.github.io/react/docs/component-specs.html#updating-shouldcomponentupdate
   */
  shouldComponentUpdate(nextProps, nextState) {
    // TODO signal if prop and state transition should trigger an update or not.
    // TLDR: a way to skip the diff algorithm and increase performance.
  },

This doesn't seem to be coming from the .ejs file either.
Any clue as to what is causing this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions