Skip to content

Commit 7cac6a4

Browse files
ferdicusfacebook-github-bot
authored andcommitted
Update App.js (#25905)
Summary: use "shorthand" of `Fragment` No need to import `Fragment` as it can be used via `<></>` vs `<Fragment><Fragment />` ## Changelog Use shorthand for Fragment in App.js [General] [Changed] - Use shorthand for Fragment in App.js Pull Request resolved: #25905 Test Plan: Ci Tests should be sufficient Differential Revision: D16666166 Pulled By: cpojer fbshipit-source-id: 70e2c9793087bf8f5e0a5477c75f178134cbd6a1
1 parent 76af5f9 commit 7cac6a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

template/App.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @flow
77
*/
88

9-
import React, {Fragment} from 'react';
9+
import React from 'react';
1010
import {
1111
SafeAreaView,
1212
StyleSheet,
@@ -26,7 +26,7 @@ import {
2626

2727
const App = () => {
2828
return (
29-
<Fragment>
29+
<>
3030
<StatusBar barStyle="dark-content" />
3131
<SafeAreaView>
3232
<ScrollView
@@ -68,7 +68,7 @@ const App = () => {
6868
</View>
6969
</ScrollView>
7070
</SafeAreaView>
71-
</Fragment>
71+
</>
7272
);
7373
};
7474

0 commit comments

Comments
 (0)