Conversation
| ReactDOM.render(<AppIndex />, reactApp); | ||
| } else if (reactSteps) { | ||
| ReactDOM.render(<GetInstructions />, reactSteps) | ||
| ReactDOM.render(<InstructionList />, reactSteps) |
There was a problem hiding this comment.
Expected an identifier and instead saw '<'.
Expected ')' and instead saw 'InstructionList'.
Expected an identifier and instead saw '>'.
Expected an assignment or function call and instead saw an expression.
Missing semicolon.
Expected an identifier and instead saw ')'.
| import ReactDOM from 'react-dom'; | ||
| import AppIndex from './components/recipes/AppIndex'; | ||
| import GetInstructions from './components/instructions/GetInstructions'; | ||
| import InstructionList from './components/recipes/InstructionList'; |
There was a problem hiding this comment.
'import' is only available in ES6 (use 'esversion: 6').
| return( | ||
| <div className="recipe-item"> | ||
| <h4><a href={`http://localhost:3000/recipes/` + this.props.id}>{this.props.name}</a></h4> | ||
| <a href={`http://localhost:3000/recipes/` + this.props.id}>{this.props.photo} photo goes here</a> |
There was a problem hiding this comment.
Unclosed regular expression.
Unrecoverable syntax error. (46% scanned).
| <h4><a href={`http://localhost:3000/recipes/` + props.id}>{props.name}</a></h4> | ||
| class Recipe extends Component { | ||
| constructor(props) { | ||
| super(props) |
| return ( | ||
| <div className="recipe-item"> | ||
| <h4><a href={`http://localhost:3000/recipes/` + props.id}>{props.name}</a></h4> | ||
| class Recipe extends Component { |
There was a problem hiding this comment.
'class' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
| let oldStep = event.target.value | ||
| let newSteps = this.state.steps.filter(step => { | ||
| return step.id !== oldStep.id | ||
| }) |
| handleButtonClick(event) { | ||
| let oldStep = event.target.value | ||
| let newSteps = this.state.steps.filter(step => { | ||
| return step.id !== oldStep.id |
|
|
||
| handleButtonClick(event) { | ||
| let oldStep = event.target.value | ||
| let newSteps = this.state.steps.filter(step => { |
There was a problem hiding this comment.
'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
| } | ||
|
|
||
| handleButtonClick(event) { | ||
| let oldStep = event.target.value |
There was a problem hiding this comment.
'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
Missing semicolon.
| console.log(body) | ||
| this.setState({steps: body}); | ||
| }) | ||
| .catch(error => console.error(`Error in fetch: ${error.message}`)); |
There was a problem hiding this comment.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
'template literal syntax' is only available in ES6 (use 'esversion: 6').
| ReactDOM.render(<AppIndex />, reactApp); | ||
| } else if (reactSteps) { | ||
| ReactDOM.render(<GetInstructions />, reactSteps) | ||
| ReactDOM.render(<InstructionList />, reactSteps) |
There was a problem hiding this comment.
Expected an identifier and instead saw '<'.
Expected ')' and instead saw 'InstructionList'.
Expected an identifier and instead saw '>'.
Expected an assignment or function call and instead saw an expression.
Missing semicolon.
Expected an identifier and instead saw ')'.
| import ReactDOM from 'react-dom'; | ||
| import AppIndex from './components/recipes/AppIndex'; | ||
| import GetInstructions from './components/instructions/GetInstructions'; | ||
| import InstructionList from './components/recipes/InstructionList'; |
There was a problem hiding this comment.
'import' is only available in ES6 (use 'esversion: 6').
| return( | ||
| <div className="recipe-item"> | ||
| <h4><a href={`http://localhost:3000/recipes/` + this.props.id}>{this.props.name}</a></h4> | ||
| <a href={`http://localhost:3000/recipes/` + this.props.id}>{this.props.photo} photo goes here</a> |
There was a problem hiding this comment.
Unclosed regular expression.
Unrecoverable syntax error. (46% scanned).
| <h4><a href={`http://localhost:3000/recipes/` + props.id}>{props.name}</a></h4> | ||
| class Recipe extends Component { | ||
| constructor(props) { | ||
| super(props) |
| return ( | ||
| <div className="recipe-item"> | ||
| <h4><a href={`http://localhost:3000/recipes/` + props.id}>{props.name}</a></h4> | ||
| class Recipe extends Component { |
There was a problem hiding this comment.
'class' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
| let oldStep = event.target.value | ||
| let newSteps = this.state.steps.filter(step => { | ||
| return step.id !== oldStep.id | ||
| }) |
| handleButtonClick(event) { | ||
| let oldStep = event.target.value | ||
| let newSteps = this.state.steps.filter(step => { | ||
| return step.id !== oldStep.id |
|
|
||
| handleButtonClick(event) { | ||
| let oldStep = event.target.value | ||
| let newSteps = this.state.steps.filter(step => { |
There was a problem hiding this comment.
'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
| } | ||
|
|
||
| handleButtonClick(event) { | ||
| let oldStep = event.target.value |
There was a problem hiding this comment.
'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
Missing semicolon.
| console.log(body) | ||
| this.setState({steps: body}); | ||
| }) | ||
| .catch(error => console.error(`Error in fetch: ${error.message}`)); |
There was a problem hiding this comment.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
'template literal syntax' is only available in ES6 (use 'esversion: 6').
| return( | ||
| <div className="recipe-item"> | ||
| <h4><a href={`http://localhost:3000/recipes/` + this.props.id}>{this.props.name}</a></h4> | ||
| <a href={`http://localhost:3000/recipes/` + this.props.id}>{this.props.photo} photo goes here</a> |
There was a problem hiding this comment.
Unclosed regular expression.
Unrecoverable syntax error. (52% scanned).
| recipe={s.recipe_id} | ||
| stepItems={s.step} | ||
| getAllSteps={this.getSteps} | ||
| /> |
There was a problem hiding this comment.
Unclosed regular expression.
Unrecoverable syntax error. (83% scanned).
| .then(body => { | ||
| this.setState({steps: body}); | ||
| }) | ||
| .catch(error => console.error(`Error in fetch: ${error.message}`)); |
There was a problem hiding this comment.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
'template literal syntax' is only available in ES6 (use 'esversion: 6').
| .then(response => { | ||
| return response.json(); | ||
| }) | ||
| .then(body => { |
There was a problem hiding this comment.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
| throw(error); | ||
| } | ||
| }) | ||
| .then(response => { |
There was a problem hiding this comment.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
| if (response.ok) { | ||
| return response; | ||
| } else { | ||
| let errorMessage = `${response.status} ($response.statusText)`, |
There was a problem hiding this comment.
'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'template literal syntax' is only available in ES6 (use 'esversion: 6').
| fetch(`http://localhost:3000/api/v1/recipes/${recipeId}/instructions`, { | ||
| credentials: 'same-origin' | ||
| }) | ||
| .then(response => { |
There was a problem hiding this comment.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
|
|
||
| getSteps() { | ||
| let recipeId = document.getElementById('recipe-id').textContent; | ||
| fetch(`http://localhost:3000/api/v1/recipes/${recipeId}/instructions`, { |
There was a problem hiding this comment.
'template literal syntax' is only available in ES6 (use 'esversion: 6').
| } | ||
|
|
||
| getSteps() { | ||
| let recipeId = document.getElementById('recipe-id').textContent; |
There was a problem hiding this comment.
'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
|
|
||
| clearForm(event) { | ||
| let newStep = event.target.value | ||
| this.setState({ step: newStep}) |
| return( | ||
| <div className="recipe-item"> | ||
| <h4><a href={`http://localhost:3000/recipes/` + this.props.id}>{this.props.name}</a></h4> | ||
| <a href={`http://localhost:3000/recipes/` + this.props.id}>{this.props.photo} photo goes here</a> |
There was a problem hiding this comment.
Unclosed regular expression.
Unrecoverable syntax error. (52% scanned).
| recipe={s.recipe_id} | ||
| stepItems={s.step} | ||
| getAllSteps={this.getSteps} | ||
| /> |
There was a problem hiding this comment.
Unclosed regular expression.
Unrecoverable syntax error. (83% scanned).
| .then(body => { | ||
| this.setState({steps: body}); | ||
| }) | ||
| .catch(error => console.error(`Error in fetch: ${error.message}`)); |
There was a problem hiding this comment.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
'template literal syntax' is only available in ES6 (use 'esversion: 6').
| .then(response => { | ||
| return response.json(); | ||
| }) | ||
| .then(body => { |
There was a problem hiding this comment.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
| throw(error); | ||
| } | ||
| }) | ||
| .then(response => { |
There was a problem hiding this comment.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
| if (response.ok) { | ||
| return response; | ||
| } else { | ||
| let errorMessage = `${response.status} ($response.statusText)`, |
There was a problem hiding this comment.
'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'template literal syntax' is only available in ES6 (use 'esversion: 6').
| fetch(`http://localhost:3000/api/v1/recipes/${recipeId}/instructions`, { | ||
| credentials: 'same-origin' | ||
| }) | ||
| .then(response => { |
There was a problem hiding this comment.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
|
|
||
| getSteps() { | ||
| let recipeId = document.getElementById('recipe-id').textContent; | ||
| fetch(`http://localhost:3000/api/v1/recipes/${recipeId}/instructions`, { |
There was a problem hiding this comment.
'template literal syntax' is only available in ES6 (use 'esversion: 6').
| } | ||
|
|
||
| getSteps() { | ||
| let recipeId = document.getElementById('recipe-id').textContent; |
There was a problem hiding this comment.
'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
|
|
||
| clearForm(event) { | ||
| let newStep = event.target.value | ||
| this.setState({ step: newStep}) |
| return( | ||
| <div className="recipe-item"> | ||
| <h4><a href={`http://localhost:3000/recipes/` + this.props.id}>{this.props.name}</a></h4> | ||
| <a href={`http://localhost:3000/recipes/` + this.props.id}>{this.props.photo} photo goes here</a> |
There was a problem hiding this comment.
Unclosed regular expression.
Unrecoverable syntax error. (52% scanned).
| recipe={s.recipe_id} | ||
| stepItems={s.step} | ||
| getAllSteps={this.getSteps} | ||
| /> |
There was a problem hiding this comment.
Unclosed regular expression.
Unrecoverable syntax error. (83% scanned).
| .then(body => { | ||
| this.setState({steps: body}); | ||
| }) | ||
| .catch(error => console.error(`Error in fetch: ${error.message}`)); |
There was a problem hiding this comment.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
'template literal syntax' is only available in ES6 (use 'esversion: 6').
| .then(response => { | ||
| return response.json(); | ||
| }) | ||
| .then(body => { |
There was a problem hiding this comment.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
| throw(error); | ||
| } | ||
| }) | ||
| .then(response => { |
There was a problem hiding this comment.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
| if (response.ok) { | ||
| return response; | ||
| } else { | ||
| let errorMessage = `${response.status} ($response.statusText)`, |
There was a problem hiding this comment.
'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'template literal syntax' is only available in ES6 (use 'esversion: 6').
| fetch(`http://localhost:3000/api/v1/recipes/${recipeId}/instructions`, { | ||
| credentials: 'same-origin' | ||
| }) | ||
| .then(response => { |
There was a problem hiding this comment.
'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
|
|
||
| getSteps() { | ||
| let recipeId = document.getElementById('recipe-id').textContent; | ||
| fetch(`http://localhost:3000/api/v1/recipes/${recipeId}/instructions`, { |
There was a problem hiding this comment.
'template literal syntax' is only available in ES6 (use 'esversion: 6').
| } | ||
|
|
||
| getSteps() { | ||
| let recipeId = document.getElementById('recipe-id').textContent; |
There was a problem hiding this comment.
'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
|
|
||
| clearForm(event) { | ||
| let newStep = event.target.value | ||
| this.setState({ step: newStep}) |
No description provided.