Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { Component } from 'react';
- export class AddButton extends Component {
- toggleModal = () => {
- this.setState({
- isOpen: !this.state.isOpen
- });
- };
- render() {
- return (
- <div className="col" align="right">
- <button type='button' className='btn btn-secondary' onClick={this.toggleModal}>Добавить</button>
- </div>
- )
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement