Skip to content
Permalink
Browse files

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
  • Loading branch information...
ferdicus authored and facebook-github-bot committed Aug 6, 2019
1 parent 76af5f9 commit 7cac6a4b6cfa8c1b54db62f2b1510f7c52f4574d
Showing with 3 additions and 3 deletions.
  1. +3 −3 template/App.js
@@ -6,7 +6,7 @@
* @flow
*/

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

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

0 comments on commit 7cac6a4

Please sign in to comment.
You can’t perform that action at this time.