This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const EssayForm = () => { | |
const [essay, setEssay] = useState('Please write an essay about your favourite DOM element.'); | |
const changeEssay = (event) => setEssay(event.target.value); | |
const submit = (event) => { | |
alert('An essay was submitted: ' + essay); | |
event.preventDefault(); | |
}; | |
return ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package uk.org.webcompere.concurrency; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.stereotype.Service; | |
import javax.annotation.PreDestroy; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.concurrent.*; |