The login app, presented in the previous section, showed how to create a parent component containing one of several possible child components. However, it implemented just one child component, the Login component. So, in this section, a more complete example will be presented, having three different possible child components, corresponding to three different pages of a classical web application.
It is named yauth, short for Yew Auth, as its behavior is almost identical to the auth project shown in the previous chapter, although, it is completely based on the Yew framework, instead of being based on Actix web and Tera.
Understanding the behavior of the app
This app is built and launched like the ones in the previous sections, and its first page is identical to the first page of the login app. Though, if you type susan as the username and xsusan as the password, and then click on the Log in button, you'll see the following page:
This page and the other page that you...