import React from "react"; import {Form, Col, Button} from "react-bootstrap"; import "./GeneralSettings.css" class GeneralSettings extends React.Component { constructor(props) { super(props); this.state = { tvshowsupport: false, videopath: "", tvshowpath: "" }; } componentDidMount() { const updateRequest = new FormData(); updateRequest.append('action', 'loadGeneralSettings'); fetch('/api/settings.php', {method: 'POST', body: updateRequest}) .then((response) => response.json() .then((result) => { // todo 2020-07-3: set state here // todo 2020-07-4: php and test code })); } render() { return ( <>