On this page https://shopify.dev/tutorials/add-predictive-search-to-your-shopify-theme#example-using-predictive-s... the first line of the code example goes
import PredictiveSearch from "@shopify/theme-predictive-search";
How do I use this line in my code? Because if I put this line in my theme.js file, there will an error saying import can't be used out of a module.
Thanks. I was able to get correct response from that API.
Regarding the building tool, I'd like to know more about this. Because the doc writer didn't explain it, I guess it is some well-known information I am missing here. I heard of building tools before but never really dived into it. For learning purposes, can you show me what building tool I can use here and make this code example work in my code? Thank you!
can you explain how you managed to get a response, step by step, so that there will be more clarity for me how to start? Where exactly did you copy what code? This would be an incredible help!!