Skip to content

[Fiber] returning functions from render does not throw #9577

@aweary

Description

@aweary

https://jsfiddle.net/3apqnhmw/

class Foo extends React.Component {
  render() {
     return <div>Foo</div>
  }
}

class App extends React.Component {
  render() {
    return Foo
  }
}

When App returns Foo instead of <Foo /> accidentally, Fiber does not catch this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions