Code Monkey home page Code Monkey logo

wobble_front_end's People

Contributors

dbf8 avatar meichen avatar nnguy152 avatar

Watchers

 avatar

wobble_front_end's Issues

Break down components even further

<p key={i}>{comment.name}<br />{comment.comment}<br />{comment.date} {console.log(comment.comment)}</p>

This would be a great opportunity to have an individual comment component render. It can feel laborious to create so many components, but it really cleans up your code. In any framework, it's good practice to modularize your code and break it down into smaller, simpler (and even reusable in future projects) pieces.

Need a corresponding post request in your back end

.post('http://wobble-back-end.herokuapp.com/api/comments', {

I don't see a post method to handle this axios request in your back end. There is a method to handle put requests at 'api/comments/:id' (though I don't see front-end functionality to edit comments?).

In order to add new comments, you'll want to add functionality to your back end to handle a post request to 'api/comments' and add the new input to the database. In a post request, you do not need an id in the path because you are creating a new document in the database that will be given an id (but doesn't yet have one because it doesn't yet exist in the DB!).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.