Answer the question
In order to leave comments, you need to log in
React-yandex-maps How to make the loadSuggest function run on onChange?
Hello, it is required to use SuggestView (even without a map). Made in the following way
const loadSuggest = ymaps => {
const suggestView = new ymaps.SuggestView("suggest");
console.log(suggestView)
};
<YMaps>
<Map
onLoad={ymaps => loadSuggest(ymaps)}
defaultState={{ center: [55.751574, 37.573856], zoom: 9 }}
modules={["SuggestView"]}
/>
<input type="text" id='suggest' />
</YMaps>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question