change methodname

This commit is contained in:
[poww10s]
2020-09-09 04:04:07 -04:00
parent 3c5813bf2e
commit 4ccc91c45a
+4 -4
View File
@@ -22,7 +22,7 @@ function onMIDIFailure() {
// Component to load a SYSEX File into the MIDI component // Component to load a SYSEX File into the MIDI component
function MIDIComponent() { function MIDIComponent() {
const [loadedFile, loadFile] = useState(null); const [file, setFile] = useState(null);
// request midi access // request midi access
useEffect(() => { useEffect(() => {
@@ -32,11 +32,11 @@ function MIDIComponent() {
}, []); }, []);
useEffect(() => { useEffect(() => {
console.log(loadedFile); console.log(file);
}, [loadedFile]); }, [file]);
const getChildFile = (childData) => { const getChildFile = (childData) => {
loadFile(childData); setFile(childData);
}; };
return; //<LoadSYSEXFile sendFileData={getChildFile} />; return; //<LoadSYSEXFile sendFileData={getChildFile} />;