MCPcopy Create free account
hub / github.com/adobe/react-spectrum / handleSubmitJournals

Function handleSubmitJournals

examples/rsp-webpack-4/src/BodyContent.js:53–66  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

51
52 //functions for journal entries
53 function handleSubmitJournals(e) {
54 e.preventDefault();
55
56 countJournals.current = countJournals.current + 1; //used to determine key for each item in the entryList array
57
58 setEntryList(prevListArray => {
59 return [
60 ...prevListArray,
61 {rate: rating, description: description, id: countJournals.current}
62 ];
63 });
64
65 setValue(''); //clears the text area when submitted
66 }
67
68 return (
69 <Tabs aria-label="Different Productivity Tabs">

Callers

nothing calls this directly

Calls 1

setValueFunction · 0.50

Tested by

no test coverage detected