Skip to content

Conversation

@Shorouq-Mohammad
Copy link
Owner

No description provided.

Copy link

@ameliawalcek ameliawalcek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

really great job! Let me know if y9ou have any questions

# production
/build

# misc

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when you use a .env dont forget to add it here

}
}

rentMovie = (movieID, result) =>{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you use somthing over and over, it would be best just to redefine it to make your code cleaner
const {users, currentUserID, catalog} = this.state

rentMovie = (id, result ) =>{
this.props.rentMovie(id, result)
}
handleSearch = (event) =>{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can also write it like
handleSearch = ({target}) => this.setState({searchTerm: target.value})



ReactDOM.render(
<React.StrictMode>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would remove React.StrictMode. I can keep reloading your app and causing your problems.

ReactDOM.render(
    <App />,
  document.getElementById('root')
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants