import React, {Component} from 'react'; import './Services.scss'; import {Button, ButtonGroup, Col, Container, Form, FormControl, InputGroup, Modal, Row, Table} from "react-bootstrap"; import backend from "../backend"; class Rules extends Component { constructor(props) { super(props); this.state = { rules: [] }; } componentDidMount() { this.loadRules(); } loadRules() { backend.get("/api/rules").then(res => this.setState({rules: res.data})); } render() { let rulesRows = this.state.rules.map(rule =>
name |
---|