35 lines
582 B
JavaScript
35 lines
582 B
JavaScript
import React, { Component } from 'react';
|
|
import { withRouter } from "react-router-dom";
|
|
|
|
import Cookbook from '../utils/Cookbook';
|
|
|
|
|
|
class Cookbook extends Component {
|
|
constructor(props) {
|
|
super(props);
|
|
|
|
this.state = {
|
|
recepie: null,
|
|
ingredients: [],
|
|
durations: []
|
|
}
|
|
}
|
|
|
|
|
|
render() {
|
|
|
|
if (!this.state.recepie) {
|
|
return <div className="Recepie">Kein Rezept gefunden</div>
|
|
}
|
|
const recepie = this.state.recepie;
|
|
return (
|
|
<div className="Recepie">Rezept gefunden</div>
|
|
);
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
export default withRouter(Cookbook);
|