Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentWillMount() {
Fetch("/history", {
method: "GET"
}).then((response) => {
this.setState({ messages: response.body });
});
}
fetchConvention(baseUrl) {
return jsonFetch(baseUrl, { method: 'GET', expectedStatuses: [200] });
},