Questions tagged [kotlin-frontend]
8 questions
9
votes
2 answers
What is the right way to import 3rd party React components into the kotlin.js project?
I'm trying to use this lib in my create-react-kotlin-app:
https://material-ui-next.com/
I want to generate bunch of type safe wrappers. I started like this:
@file:JsModule("material-ui")
package material
import react.RState
import…

deviant
- 3,539
- 4
- 32
- 47
8
votes
2 answers
Creating a Kotlin React App using gradle
I have been looking forward on how to create a kotlin-react-app using gradle (I am aware with the create-kotlin-react-app CLI tool, which doesn't use radle) and i couldn't get any sources to point me through. I have stumbled accross the kotlin…

andylamax
- 1,858
- 1
- 14
- 31
5
votes
1 answer
Import external css in a Kotlin React app
I want to use css library like bootstrap/material inside my Kotlin-React app. Is there a way to import those external css libraries? There is a Kotlin-Styled wrapper but not sure how to use it to import css.

Prabhakar
- 402
- 6
- 20
1
vote
1 answer
Firebase Email-Password Authentication using Kotlin in Web Front-End
I am trying to implement Firebase Email-Password Authentication using Kotlin in Web Front-End. But I think we can't do it using Kotlin as Firebase Authentication for Web only supports JS as per the examples I have seen.
So, my first question is: Can…

Avijit Karmakar
- 8,890
- 6
- 44
- 59
1
vote
1 answer
How do i get access to Facebooks javascript api in a Kotlin React project?
I have a project using "kotlinFrontend" to create a really nice react front end written in kotlin. How do i get access to the facebook js sdk (it is usually done withing script tags)
I have this code on my HTML template that includes the generated…

Chris Legge
- 739
- 2
- 9
- 24
1
vote
1 answer
What's difference between RBuilder and RDomBuilder?
In the kotlin react demo projects i see both
fun RBuilder.someComponent(){...}
and
fun RDOMBuilder<*>.someComponent(){...}
What is the difference between these two?

deviant
- 3,539
- 4
- 32
- 47
0
votes
0 answers
kotlin compiler not able to compile expression for( i in 0..n)
I am getting a build failed with following exception, not able to understand what is wrong in following code. can anybody help me with this. Its builds well when i run on my laptop, but fails in my CI pipeline in azure…

Mekal Kesharwani
- 1
- 1
0
votes
0 answers
Redirect to another web page in Kotlin Web Front End development
I am trying to redirect to another web page in Kotlin for Web Front End development. I have wrote this code to achieve this:
window.location.href = "adduser1.html"
But if I write this code then, the code written after this line are not executing.…

Avijit Karmakar
- 8,890
- 6
- 44
- 59