Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

How to use local styles? #26

Open
StokeMasterJack opened this issue Oct 26, 2017 · 1 comment
Open

How to use local styles? #26

StokeMasterJack opened this issue Oct 26, 2017 · 1 comment

Comments

@StokeMasterJack
Copy link

In react we go like this:

const s = { color:"red" }
<div style={s} >Hello</div>

How to do the equivalent in Kotlin React?

@gnefedev
Copy link

gnefedev commented Jan 7, 2018

    attrs {
        style = kotlinext.js.js {
            textAlign = "left"
        }
    }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants