Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CreditCart extends React.Component {
- constructor(props) {
- super(props);
- this.state = {show:false};
- this.handleClick = this.handleClick.bind(this);
- }
- handleClick () {
- this.setState({ show : !this.state.show})
- }
- render () {
- return (
- //2 input here credir-cart has onClick
- {this.state.show && <CreditCart/>
- }
- class CreditCart extends React.Component {
- constructor(props) {
- super(props);
- }
- render () {
- // information part
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement