Join Slack
Communities
Powered by
Heyho, is there a way to set default props in Kotl...
# react
b
Björn Mayer
10/25/2020, 1:35 PM
Heyho, is there a way to set default props in Kotlin React?
https://reactjs.org/docs/typechecking-with-proptypes.html#default-prop-values
Björn Mayer
10/25/2020, 1:44 PM
nvm. found it after some digging:
https://github.com/JetBrains/kotlin-wrappers/blob/master/kotlin-react/src/main/kotlin/react/React.kt#L73
a
andylamax
11/25/2020, 12:12 PM
If you intend to use this component from a pure react app, then that is the way to go. If you intend to use it for kotlin-react only, there is a better way
13
Views
Open in Slack
Previous
Next