Welcome to the Frontity community. Do you mean like the WordPress template hierarchy?
If so, then WordPress in fact also uses the URL to determine which template to use. The “pretty permalink” is converted into query string parameters which WordPress uses to choose which template from the theme to use.
So the mechanism with Frontity isn’t really that much different, except that you choose the React component to use based on the “pretty permalink”, i.e. the URL you see in the browser address bar.
That said, Frontity does have some information in the state to help you choose different components. For example, the homepage will have the
isHome property set to
state.source.data, so you can check that to use a different component for your homepage from the component used for all the other pages in your theme.
When developing your site it’s worth keeping the console open and checking
frontity.state.source to see what properties you’ve got available to use in the conditionals that you want to use.