As for yew 17.3 (maybe even before, I didn't check) Console got a little easier.
You don't need to add a console: ConsoleService field to the App struct anymore. In fact that aproach won't work anymore, which means your example won't compile.
The good thing is, it got simpler. Just use this anywhere in the code:
ConsoleService::log("something");
You might wanna update this post to reflect that, because otherwise it is quite great, thanks for the effort : )
Hi. Yes, it's something I take care of much later in the tutorials. You know at the time of writing this, the stable Yew version I was using was 0.12.
Up to 0.16 the interfaces were pretty stable, but from 0.16 on many changes were introduced.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
As for yew 17.3 (maybe even before, I didn't check) Console got a little easier.
You don't need to add a
console: ConsoleService
field to the App struct anymore. In fact that aproach won't work anymore, which means your example won't compile.The good thing is, it got simpler. Just use this anywhere in the code:
You might wanna update this post to reflect that, because otherwise it is quite great, thanks for the effort : )
Hi. Yes, it's something I take care of much later in the tutorials. You know at the time of writing this, the stable Yew version I was using was 0.12.
Up to 0.16 the interfaces were pretty stable, but from 0.16 on many changes were introduced.