(newKeywords: string[])
| 11 | const [keywords, setKeywords] = useState<string[]>(['ansub', 'syntax']) |
| 12 | |
| 13 | const onKeywordsChange = (newKeywords: string[]) => { |
| 14 | setKeywords(newKeywords) |
| 15 | // Additional actions upon keywords change can be handled here |
| 16 | } |
| 17 | const [inputValue, setInputValue] = useState<string>('') |
| 18 | |
| 19 | // Handles adding new keyword on Enter or comma press, and keyword removal on Backspace |
no outgoing calls
no test coverage detected