Jared
02/27/2019, 10:25 PMBenjamin Charais
04/21/2019, 3:07 AMreact-router-dom
adam.wilson
04/29/2019, 3:50 PMLawik
05/09/2019, 10:01 AMgalex
05/29/2019, 5:24 PMRobert Jaros
06/20/2019, 11:06 PMkotlin-wrappers
is built with Kotlin 1.3.40 but kotlinx.serialization 0.11.0 (https://github.com/JetBrains/kotlin-wrappers/blob/master/versions.gradle). I'm having dependency problem after upgrade, which could be caused by this. Any chance of a quick fix (change to 0.11.1)?o.semen
06/24/2019, 12:20 PMdiv
inside RBuilder.render
. Have no idea even where to look for solution. Can someone guide me a bit ?o.semen
07/15/2019, 9:04 AMimplementation(npm("@jetbrains/kotlin-react", "16.6.0-pre.67"))
implementation(npm("@jetbrains/kotlin-react-dom", "16.6.0-pre.67"))
in js{}
and js{ browser {} }
sections
as well as
kotlinFrontend {
npm {
dependency("@jetbrains/kotlin-react")
dependency("@jetbrains/kotlin-react-dom")
dependency("core-js", "^2.0.0")
dependency("react", "16.8.3")
dependency("react-dom", "16.8.3")
}
}
but it does not help.Soren Valle
07/26/2019, 3:02 PMJoffrey
08/01/2019, 9:29 PMkotlin-styled
for CSS, but then how to declare a background = "url('myImage.png')"
with a path relative to the current file?Big Chungus
08/03/2019, 3:40 PMexternal fun <A, T1, R> compose(function1: (T1) -> R, function2: (A) -> T1): (A) -> R
&
external fun <S, A, R> createStore(
reducer: Reducer<S, A>,
preloadedState: S,
enhancer: Enhancer<S, Action, Action, A, R>
): Store<S, A, R>
R especiallySoren Valle
08/04/2019, 12:42 AMwithRouter
(https://reacttraining.com/react-router/web/api/withRouter).
I haven't been able to find it in the wrappers and haven't been successful in calling it myself on my class components.Big Chungus
08/05/2019, 7:17 AMrince
08/10/2019, 4:42 PMattrs {value = js("""{"a":"b"}""")}
, however I can't figure out how to pass in a state variable instead)Juanoterocas
09/02/2019, 2:33 PMRodrigo Silva
09/30/2019, 1:26 PMTristan Caron
10/18/2019, 6:40 PMfun RBuilder.modal(children: RBuilder.() -> Unit) {
createPortal(document.getElementById("modal-root")) {
div("modal") {
children()
}
}
}
Nikky
12/06/2019, 7:26 PMNikky
01/07/2020, 7:31 PMkotlin-dce-js
incompatible with react or something ?
i am getting
error: duplicate target file will be created for '..../build/js/node_modules/react/index.js' and '..../build/js/node_modules/text-encoding/index.js'
i am using kotlin("js")
and id("kotlin-dce-js")
plugins on 1.3.61
or is there a new dce variant that i should use instead ?Paul N
01/09/2020, 12:04 PMimport {faList, faPlus} from "@fortawesome/free-solid-svg-icons";
Is there a less clunky way than this ?
@file:JsModule("@fortawesome/free-solid-svg-icons")
@file:JsNonModule()
import react.*
@JsName("faSyncAlt")
external val faSyncAlt: RClass<RProps>
@JsName("faPlus")
external val faPlus: RClass<RProps>
Nikky
01/09/2020, 3:23 PMPaul N
01/12/2020, 9:01 PMexternal open class Dropdown : React.Component<DropdownBaseProps /* Dropdown.DropdownBaseProps & React.HTMLProps<Dropdown> */> {
IntelliJ can't find an import for React.Component.
Does anyone know how to resolved the missing dependency ?Nikky
01/13/2020, 10:16 AM@types/react-bootstrap
to usable external declarations..
i might be bored enough to translate the rest
but i am not even sure where to start....Nikky
01/14/2020, 5:29 PMribesg
02/08/2020, 9:36 PMGurupad Mamadapur [FH]
02/27/2020, 8:56 AMoverride fun InputState.init() {
// props is undefined here
}
override fun InputState.init(props: InputProps) {
// Not called
}
code doc also mentions -
// if you use this method, don't forget to pass props to the constructor first
open fun S.init(props: P) {}
But how do I pass props to the constructor?Roger Kreienbühl
03/09/2020, 9:40 AM@file:JsModule("react-grid-layout")
@file:JsNonModule
import kotlinext.js.Object
import react.RClass
import react.RProps
@JsName("default")
external val ReactGridLayout: RClass<GridLayoutProps>
external interface GridLayoutProps: RProps {
var autoSize: Boolean
var cols: Int
var calssName: String
var style: Object
var draggableHandle: String
var draggableCancel: String
var containerPadding: Any
var rowHeight: Int
var maxRows: Int
var layout: Array<IntArray>
var margin: Array<Int>
var isDraggable: Boolean
var isResizable: Boolean
var isDroppable: Boolean
var useCSSTransforms: Boolean
var transformScale: Int
var verticalCompact: Boolean
var compactType: String?
var preventCollision: Boolean
var droppingItem: Object
var onLayoutChange: Any
var onDragStart: Any
var onDrag: Any
var onDragStop: Any
var onResizeStart: Any
var onResize: Any
var onResizeStop: Any
var onDrop: Any
}
When I now try to use this, I only get errors.
What am I doing wrong?Darren Bell
03/20/2020, 11:01 AMuseEffectWithCleanup
to fire only when I have a specific state change. For example, I want the cleanup to happen only when my submitted state changes.Joffrey
03/24/2020, 10:33 AMPaul N
04/27/2020, 8:46 AMPaul N
04/27/2020, 8:46 AMBjörn Mayer
04/27/2020, 8:53 AMPaul N
04/27/2020, 8:57 AMSebastian Aigner
04/28/2020, 12:04 PMPaul N
04/28/2020, 2:43 PM