You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the getDerivedStateFromProps API by defining it inside ComponentWrapper or the companion object of an annotated component PR #130
Use the React.forwardRef API to create new components that forward their refs to children PR #127
Use the StrictMode component to enable more runtime checks on your components PR #128
Slinky now has support for React Native, available in the slinky-native module. Try it out with create-react-native-scala-app
Slinky now has support for React VR, available in the slinky-vr module. Try it out with create-react-vr-scala-app
Want to write fancier unit tests for your Slinky app? Slinky now comes with an interface for react-test-renderer, available under the slinky-testrenderer module. PR #119
Breaking Changes
The ErrorBoundary trait has been removed, because it is no longer needed to implement an error boundary component
The DefinitionBase class now takes an additional type parameter Snapshot, for use with the new snapshot-based lifecycle API
The BuildingComponent case class has been simplified into a regular class, so the new keyword is now required when creating instances
The React object has been refactored to take regular Scala types instead of JS types, so any dependency on the original JS types (js.FunctionN) will not work
Details
The @react macro now produces nicer APIs for external components that have default values for all props parameters. PR #119
Add more variations for ExternalComponent that support providing a statically-typed interface for the component instance: ExternalComponentWithRefType, ExternalComponentWithAttributesWithRefType, ExternalComponentNoPropsWithRefType, ExternalComponentNoPropsWithAttributesWithRefTypePR #119
Bring back the WithRaw trait, which makes it possible to access the original object of a read value PR #122
Fix exceptions when declaring custom tags and attributes in a component class PR #118
Fix exceptions when reading the null-prototype in Node.js PR #121