Save for Later
This guide was created with Scribe in
2 minutes.
Sign in and create your own!
Add a new route to a Search UI
For a UI builder that’s created from the dashboard, how to add a new page and have it show up in the UI builder
Siddharth Kothari
|
0 step
|
2 minutes
Netlify
Csb
Codesandbox
Hotjar
Loom
Appbase
1
of 1
Adding components(search, facets and results) to HelloWorld.js page
1
Navigate to your Search UI
2
Go to the code editor.
Zoom Saved
3
Navigate to reactivesearch-manifest.json file.
Zoom Saved
4
Add "hello-world" page key under the "pages" JSON object
Zoom Saved
5
You may create a new directory - "pages" under "src" to house new pages.
Zoom Saved
6
Create a new page "HelloWorld.js" under "src > pages" directory
Zoom Saved
7
Import HelloWorld.js from src/pages/ in App.js
Zoom Saved
8
Add a new route '/hello-world' to "App.js" that renders "HelloWorld.js"
Zoom Saved
9
Commit and deploy the code.
Zoom Saved
10
Navigate to generated codesandbox link/ deployed link and navigate to '/hello-world' route
Zoom Saved
11
Close the code editor
Zoom Saved
12
Navigate to "UI Components" tab
Zoom Saved
13
Confirm the presence of the newly added page. 🎉
Zoom Saved
Adding components(search, facets and results) to HelloWorld.js page
14
Navigate to the "UI components" tab, and select 'hello-world' from page route selector
Zoom Saved
15
Configure the page settings.
Zoom Saved
16
Zoom Saved
17
Zoom Saved
18
Zoom Saved
19
Finish configuring facets, results settings, search settings, etc, and save the settings
Zoom Saved
Want to make guides like this in seconds? Yes, it's really that fast.
Show Me How
Have something to say?
Create an account to leave messages for the author to see!
Create an account
Feedback
This Scribe is in tip-top shape!
Leave feedback if there are any issues with this Scribe