In react we can use 3 different way to create a component.
1.const App =()=>{...}
const App =()=>{...}
const App = React.createClass({...})
3.class App extends React.Component{...}
class App extends React.Component{...}
Which the best solution to define a component?
Aucun commentaire:
Enregistrer un commentaire