.circle {
border-radius: 50%;
box-shadow: 0 0 0 9999px rgba(0, 0, 0, .5);
}
console.time('foo')
setTimeout(console.timeEnd, 1000, 'foo')
// console
foo: timer started_display
foo: 1002.67ms
let flag = false;
Element.addEventListener('event', () => {
if (!flag) {
action();
flag = true;
}
});
<Link to='projects/one'>One</Link>
<Route path="projects" component={Projects} >
<Route path="one" component={ProjectsLevel} />
<Route path="two" component={ProjectIngrad} />
</Route>
const Projects = ({ children }) => children || <div>Projects</div>