https://medium.com/@ericclemmons/react-event-preventdefault-78c28c950e46
https://facebook.github.io/react/docs/events.html
event.preventDefault();
// Let's stop this event.
event.stopPropagation();
// Really this time.
handleKeyDown(event) {
if (event.keyCode === 13) {
event.preventDefault(); // Let's stop this event.
event.stopPropagation(); // Really this time.
alert("Is it stopped?");
// "Hahaha, I'm gonna submit anyway!" - Chrome
}
}
GitHub API
https://api.github.com/users/xgqfrms
test website
https://cdn.xgqfrms.xyz/index.html
Fetch
Axios
Getting Started With Axios (Accessing REST Web Services HTTP APIs in JavaScript) [Full HD,1920x1080].mp4