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
function MIDIComponent() {
const [loadedFile, loadFile] = useState(null);
const [file, setFile] = useState(null);
// request midi access
useEffect(() => {
@@ -32,11 +32,11 @@ function MIDIComponent() {
}, []);
useEffect(() => {
console.log(loadedFile);
}, [loadedFile]);
console.log(file);
}, [file]);
const getChildFile = (childData) => {
loadFile(childData);
setFile(childData);
};
return; //<LoadSYSEXFile sendFileData={getChildFile} />;