Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

140
Views
How to get "scoped slot" behaviour in web components?

I am looking closely at lit to make a cross-framework component library but to be a viable option I need a way to obtain the result of something like Vue's scoped slots or React render functions so I can share the state saved in lit with the components that the users will code with their favorite framework.

Any idea on how to achieve something like this:

<my-awesome-lit-list>
       <UserReactComponentSingleRow {...stateFromMyAwesomeLitList} />
</my-awesome-lit-list>

Being able to have the lit component handling the logic and only pass the correct props to the child component from another framework would be the holy grail of framework interoperability. In the example the user could provide a custom Row component with his framework of choice. I know this specific syntax is not achievable, but I was wondering if there are alternative patterns to obtain the end result.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!