bitovi / react-to-web-component

Convert react components to native Web Components. Works with Preact too!
https://www.bitovi.com/open-source/react-to-web-component
MIT License
644 stars 42 forks source link

Pass `axios` from parent component to Web Component. #174

Open ahmedsakri opened 4 months ago

ahmedsakri commented 4 months ago

I want to pass axios and add signature and other logic in parent component and pass that axios instance into WebComponent and do axios API calls.

How to achieve above?

ahmedsakri commented 4 months ago

Can anyone please help here?

HighLiuk commented 4 months ago

@ahmedsakri does context work?

ahmedsakri commented 4 months ago

@ahmedsakri does context work?

How can i pass context in Web Component? Any example will be great.