Skip to content

Instantly share code, notes, and snippets.

@ShikaSD
Created January 23, 2020 19:09
val eventToWish: (Event) -> Wish = {
when (it) {
is ButtonClick -> Increment
}
}
val stateToModel: (State) -> ViewModel = {
ViewModel(text = state.counter.toString())
}
Binder().apply {
bind(view to feature using eventToWish)
bind(feature to view using stateToModel)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment