You need to sign in to do that
Don't have an account?
Roy Sourav
LWC - real time use cases of slots
I am new to LWC and wanted to solidify my understanding with slots. Can someone help me with some good use cases of slots. That can be achieved in a better way with slots rather than passing data to child.
Thanks in advance.
Thanks in advance.
I suspect there you will not find much use cases.
But you can check the below blog,
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/create_components_best_composition
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.create_components_slots
It might help you.
Thanks.