Check out example codes for "duck duck go retro search widget". It will help you in understanding the concepts better.
Code Example 1
<iframe src="https://duckduckgo.com/search.html?prefill=Search DuckDuckGo" style="overflow:hidden;margin:0;padding:0;width:408px;height:40px;" frameborder="0"></iframe>
Learn ReactJs, React Native from akashmittal.com