hey everyone! I was fidgeting around kotlin/js and...
# javascript
a
hey everyone! I was fidgeting around kotlin/js and wanted to know if there is some easy way around to do this:
Copy code
override fun RBuilder.render() {
        div {
            div(){}
            div(){}
            div(){}
            div(){}
            div(){}
            div(){}
            div(){}
            div(){}
            div(){}
            div(){}
        }
    }
is there any way around like
List.generate()
something that sort of in kotlin or can we use
map
function?
t
Copy code
val Component = fc<Props> {
    div {
        repeat(10) {
            div()
        }
    }
}
🙌 4