preact
preact copied to clipboard
`Component.render`'s `props` and `state` parameters should not be optional
Reproduction
Component.render
's props
and state
parameters are great and very convenient, but it should not be optional, since both this.props
and state
are defined for every Component
. If it's not really necessary to call it without parameter, the typescript definition shall not be define it as optional. (Component.props
and state
properties are not defined optional)
Steps to reproduce
Expected Behavior
Component.render
's props
and state
should not be optional
Actual Behavior
Component.render
's props
and state
parameters optional
Properties that have initial values should be optional
@marvinhagemeister Is this issue still relevant? Can I work on this?