I am very very new to frontity and react in general and learn best from video tutorials but I haven’t been able to find anything to can explain how to render select pages on my homepage. I am essentially wanting to build something similar to wordpress twenty seventeen theme. I want a main intro page at the top and as your scroll you go through the about page, contact page, etc. Anyone know where I can find resources that can explain a bit on how to do something like this?
You need know use Switch component [0].
Add your new page or content type to the frontity state so you can access it. [1]
is something similar to <BrowserRouter> [2] from for React
I leave you the example of the index.js of mars-theme
<Switch>
<Loading when={data.isFetching} />
<List when={data.isArchive} />
<Post when={data.isPostType} />
<PageError when={data.isError} />
</Switch>
[0] => frontity/index.js at dev · frontity/frontity · GitHub
[1] => frontity/index.js at dev · frontity/frontity · GitHub
[2] => React Router: Declarative Routing for React.js