question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documentation for kotlin-react

See original GitHub issue

Migrating kotlin-react from a lower version than pre.282 is currently quite difficult due to the lack of documentation on the new kotlin-react and also kotlin-react-dom versions with the ChildrenBuilder() and its other changes. It would be really helpful to have a demo project with functional components and especially class components as I haven’t seen an updated project using these.

Currently having just the changelog doesn’t seem to be sufficient for a smooth migration process. An introduction like the one from kotlin-react-legacy would help immensely in that regard.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:6
  • Comments:7

github_iconTop GitHub Comments

1reaction
hofi99commented, Jun 21, 2022

@piacenti Have a look at our project CampusQR where we use class components with the new kotlin wrappers.

0reactions
piacenticommented, Nov 19, 2022

@Martmists-GH Make sure you have the function available. There is an FC function and FC interface. They share the same name and are in the same package. The interface is in the kotlin-react-core module while the function is in the kotlin-react module

fun <P : Props> FC(
    block: ChildrenBuilder.(props: P) -> Unit,
): FC<P> 
external interface FC<in P : Props> :
    ComponentType<P>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Get started with Kotlin/JS for React
In IntelliJ IDEA, select File | New | Project. · In the panel on the left, select Kotlin Multiplatform. · Enter a project...
Read more >
Is there a react-kotlin documentation or reference? - Reddit
I've just started using kotlin together with react and I can't find any real documention of it. I would be really surprised if...
Read more >
kotlin-wrappers/README.md at master · JetBrains ... - GitHub
Kotlin wrapper for React library. Major version number of this wrapper matches that of React itself. kotlin-react vs kotlin-react-legacy. kotlin ...
Read more >
@jetbrains/kotlin-react: Documentation | Openbase
Kotlin wrapper for React library. Major version number of this wrapper matches that of React itself. Installation. npm i @jetbrains/kotlin-react.
Read more >
How to Build a React App in Kotlin - JetBrains
Kotlin JS? ○ Kotlin builders? ○ kotlinx-html? Page 3. Why Kotlin-React ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found