Prabin Timsina
12/07/2022, 4:07 AMconst Input = () => {
return <input placeholder="Your input here" />;
};
1. My attempt which does not render anything when method is called:
fun input(): ReactElement<Props>? {
return createElement {
ReactHTML.input {
this.attrs.placeholder = "Your input here"
}
}
}
2. Also tried this github example but no success: https://github.com/Kotlin/react-redux-js-ir-todo-list-sample/blob/master/src/main/kotlin/reactredux/components/Link.kt#L12turansky
12/07/2022, 8:49 AMBig Chungus
12/07/2022, 11:42 AM