You can prevent the error by adding a check before the article.map block is rendered:
<div className="wrapper">
{ article ? (article.map(...)) : 'No article found...'}
</div>
If you need to reset the input state to Technology you can define a custom function, and call it when needed:
const resetInput = () => {
setInput('Technology')
}