Skip to content

Mistake in a code sample in the documentation #3873

Closed
@nickretallack

Description

@nickretallack

https://vuejs.org/guide/render-function.html#Constraints

render: function (createElement) {
  var myParagraph =
  return createElement('div',
    Array.apply(null, { length: 20 }).map(function () {
      return createElement('p', 'hi')
    })
  )
}

The var myParagraph line should be removed.

https://vuejs.org/guide/reactivity.html#Declaring-Reactive-Properties

"you have to initialize you instances"

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