-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
render react app setup into dedicated js file
- Loading branch information
1 parent
77d68a0
commit 8599967
Showing
2 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { File } from '@asyncapi/generator-react-sdk'; | ||
import { App } from '../../components/index'; | ||
import { AsyncAPIDocumentInterface } from '@asyncapi/parser'; | ||
|
||
/** | ||
* | ||
* @param {object} param0 | ||
* @param {AsyncAPIDocumentInterface} param0.asyncapi | ||
* @returns | ||
*/ | ||
export default function({ asyncapi, params = {} }) { | ||
return ( | ||
<File name='app.js'> | ||
<App asyncapi={asyncapi} params={params} /> | ||
</File> | ||
); | ||
} |