We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b8d595 commit 2455995Copy full SHA for 2455995
src/pages/EditorComponent.js
@@ -62,7 +62,7 @@ const WelcomeText = styled("span")(({ theme }) => ({
62
63
function EditorComponent() {
64
const [code, setCode] = useState(null);
65
- const [setOutput] = useState([]);
+ const [output, setOutput] = useState([]);
66
67
const [currentLanguage, setCurrentLanguage] = useState(
68
LANGUAGES[0].DEFAULT_LANGUAGE
@@ -277,10 +277,10 @@ function EditorComponent() {
277
</div>
278
</StyledLayout>
279
<OutputLayout>
280
- {/* {Array.isArray(output) &&
+ {Array.isArray(output) &&
281
output.map((result, i) => {
282
return <div key={i}>{result}</div>;
283
- })} */}
+ })}
284
<Footer/>
285
</OutputLayout>
286
</>
0 commit comments