Answer the question
In order to leave comments, you need to log in
Which approach is better?
Hello. Which one is better to use:
1.
import React from 'react';
class App extends React.Component {
<React.Fragment>...</React.Fragment>
}
import React, { Component, Fragment } from 'react';
class App extends Component {
<Fragment>...</Fragment>
}
Answer the question
In order to leave comments, you need to log in
import React, { Component } from 'react';
class App extends Component {
<>...</>
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question