Код файла js:
import React from "react";
import "./App.scss";
class App extends React.Component {
state = { fadingOut: false }
fadeOut = () => this.setState({fadingOut: true});
render() {
return (
'blur(0.35vw)'} : undefined }
>
.datapoems

Poem Theme
Detector
Enter


);
}
}
export default App;
Код загрузчика scss:
.loader {
border: 16px solid #f3f3f3;
border-radius: 50%;
border-top: 16px solid blue;
border-bottom: 16px solid blue;
width: 120px;
height: 120px;
-webkit-animation: spin 2s linear infinite;
animation: spin 2s linear infinite;
}
@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
Подробнее здесь: https://stackoverflow.com/questions/565 ... is-clicked
Мобильная версия