myapp/src/components/views/SearchBar.js
//This will block any input that is not space or characters
This will block any input that is not space or characters
This will block any input that is not space or characters
checkCharacter(event){
            const re = /[a-zA-Z ]+/g;
            if(!re.test(event.key)){
                event.preventDefault();
            }
   }
checkCharacter ( event ) { const re = / [a-zA-Z ]+ / g ; if ( ! re . test ( event . key ) ) { event . preventDefault ( ) ; } }
This will block any input that is not space or characters
This will block any input that is not space or characters