Skip to content

Commit

Permalink
Merge pull request #185 from oslabs-beta/assignTab
Browse files Browse the repository at this point in the history
added fragments block for code preview
  • Loading branch information
huypham048 committed Jun 16, 2022
2 parents feae9e5 + 2e19f1b commit 2588ce8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/src/helperFunctions/generateCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,11 @@ ${` const [value, setValue] = useState("");${writeStateProps(
currComponent.useStateCodes
)}`}
return(\n${createRender()}\n\t\t\t)
return(
<>
${createRender()}
</>
);
${`}\n`}
export default ${currComponent.name}
`;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
"css-loader": "^2.1.1",
"dotenv-webpack": "^5.0.1",
"electron": "^16.0.6",
"electron-builder": "^22.13.1",
"electron-builder": "^23.0.2",
"enzyme-to-json": "^3.5.0",
"esbuild": "^0.14.10",
"eslint": "^4.19.1",
Expand Down

0 comments on commit 2588ce8

Please sign in to comment.