Guest User

Untitled

a guest
Aug 15th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import './App.css';
  3.  
  4. import SelectBrand from './components/SelectBrand'
  5. import SelectModel from './components/SelectModel'
  6.  
  7. class App extends Component {
  8. state = {}
  9.  
  10. render() {
  11. return (
  12. <div className="form">
  13. <SelectBrand
  14. value={this.state.brand_id}
  15. onChange={brand_id => this.setState({ brand_id })}
  16. />
  17.  
  18. <SelectModel
  19. value={this.state.model_id}
  20. onChange={model_id => this.setState({ model_id })}
  21. brandId={this.state.brand_id}
  22. />
  23. </div>
  24. );
  25. }
  26. }
  27.  
  28. export default App;
Add Comment
Please, Sign In to add comment