Open alvinthen opened 4 years ago
As per title, when using <></>, eslint does not report any errors.
<></>
However, <React.Fragment></React.Fragment> does work
<React.Fragment></React.Fragment>
import React from 'react'; import { View, StyleSheet } from 'react-native'; export default function Tester() { return ( <> <View style={styles.used} /> </> ); } const styles = StyleSheet.create({ unused: {}, used: {}, });
As per title, when using
<></>
, eslint does not report any errors.However,
<React.Fragment></React.Fragment>
does work