[object object] in react code example
Example: react object
import React, { Component } from 'react';
class App extends Component {
render () {
return (
<div>
<Button />
</div>
)
}
}
class Button extends Component {
render () {
return <button>A button</button>
}
}
export default App;