Does anyone know if it's possible to implement Rea...
# react
b
Does anyone know if it's possible to implement React's
useState
hook in pure kotlin? Or does it rely on JS's
var
magic?
f
@Big Chungus, check this Jetbains Sample.
b
I did and they use react's rawUseState, which I want to avoid
f
@Big Chungus, I'm new with react. What do you mean with react's rawUseState?
b
rawUseState is just react's useState renamed on kotlin external declarations
Anyways, figured it out
h
@Big Chungus how did you do it?
h
👍
f
@Big Chungus, I'm new with Kotlin. What advantages does your project have over kotlix.html or kotlin-react?
b
Main goal is VDOM lib for WASM that essentially mirrors what kotlinx.html does but on common code 🙂
Allowing you to compile your entire web UI from common-only code for either js or wasm
It's veeery experimental now, though and I'm reworking entire diffing algorithm
e
The link above is broken. Getting a 404.
b
Yeah, the branch was merged
e