react-ioc icon indicating copy to clipboard operation
react-ioc copied to clipboard

Document usage without decorators

Open kubk opened this issue 3 years ago • 5 comments

Readme file states that this library works without decorators: image

Could you document how to use it without decorators? We are using Mobx 6 and decorators are turned off

kubk avatar Jan 15 '21 12:01 kubk

Hi, inject utility isn't what you needed?

kirilldronkin avatar Jul 05 '21 07:07 kirilldronkin

@kirilldronkin How can I use it with function components? The example only shows how to use it with class components.

kubk avatar Jul 05 '21 20:07 kubk

useInstance hook is intended for usage in function components.

kirilldronkin avatar Jul 06 '21 07:07 kirilldronkin

@kirilldronkin Thank you! I think this issue can be closed. Are you a maintainer of the project? Is it still alive?

kubk avatar Jul 06 '21 09:07 kubk

Is there also a way to use registerIn without decorators?

BrunnerLivio avatar Nov 02 '23 17:11 BrunnerLivio