import React, { Component } from 'react'; import Categories from './Categories'; import Category from './Category'; import Tool from './Tool'; import { Container, Dimmer, Dropdown, Header, Icon, Item, Loader, Menu, Segment, Input } from 'semantic-ui-react'; import { Link, Route } from 'react-router-dom'; class App extends Component { constructor() { super(); this.state = { toolData: null, }; } componentDidMount() { fetch('http://localhost:8080/api/client') .then(response => response.json()) .then(data => this.setState({ toolData: data })); } render() { const toolData = this.state.toolData; return (