Skip to content

Commit

Permalink
Update App.js (#25905)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ferdicus authored and facebook-github-bot committed Aug 6, 2019
1 parent 76af5f9 commit 7cac6a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions template/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @flow
*/

import React, {Fragment} from 'react';
import React from 'react';
import {
SafeAreaView,
StyleSheet,
Expand All @@ -26,7 +26,7 @@ import {

const App = () => {
return (
<Fragment>
<>
<StatusBar barStyle="dark-content" />
<SafeAreaView>
<ScrollView
Expand Down Expand Up @@ -68,7 +68,7 @@ const App = () => {
</View>
</ScrollView>
</SafeAreaView>
</Fragment>
</>
);
};

Expand Down

0 comments on commit 7cac6a4

Please sign in to comment.