How to call a composable function in onClick event
This is a composable function and I want to do that when I click on cardview then article will open in android view but didn't understand how to achieve this.
I also try with lamda but not got success.
I Want to call ShowOnWebView composable function when NewsCardView(Card View) function clicked but compiler shows an error "@Composable invocations can only happen from the context of a @Composable function"
how to call my function when cardview will clicked