A thing that I dont know. Can we always write our ...
# javascript
d
A thing that I dont know. Can we always write our code using 'dynamic' instead of writing wrappers? For example, this react wrappper, it is really needed or is just to organize the things?
k
Yes, you can write using only
dynamic
types. However, it's not very convenient
f
This raises a question, why not just write in js 😃
As for
kotlin-react
, typings are just a small part of it. The big part is DSL to replace JSX. If you had only typings, you would write your render like that:
Copy code
createElement(
    "div",
    object {
        val className="foo"
        val title="bar"
    },
    "Hello, ",
    createElement("span", object {}, "World!")
)