Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(playground): update react to support multiple lines
  • Loading branch information
brandyscarney committed Dec 30, 2024
commit 8f935df353c10cf14de329a9078645763aa1220d
6 changes: 5 additions & 1 deletion _templates/playground/new/react.md.ejs.t
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ import { <%= pascalComponent %> } from '@ionic/react';<% if (css){ %>
import './main.css';<% } %>

function Example() {
return <<%= pascalComponent %>></<%= pascalComponent %>>;
return (
<>
<<%= pascalComponent %>></<%= pascalComponent %>>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change was made because running npm run lint after adding a new playground was removing the () but this makes it so it passes lint and supports adding more child components.

</>
);
}
export default Example;
```