Giter Site home page Giter Site logo

React with ES6 about rest-api-playlist HOT 8 OPEN

iamshaunjp avatar iamshaunjp commented on August 15, 2024
React with ES6

from rest-api-playlist.

Comments (8)

Dynamic-Gravity avatar Dynamic-Gravity commented on August 15, 2024

Related to #6 ?

from rest-api-playlist.

pinglinh avatar pinglinh commented on August 15, 2024

@Dynamic-Gravity I don't think so because I am importing react 16.0. I'm used to using ES6 for React so wanted to use this instead. However I'm finally getting an error message on the console:
Uncaught TypeError: Cannot read property 'refs' of undefined

from rest-api-playlist.

Dynamic-Gravity avatar Dynamic-Gravity commented on August 15, 2024

@pinglinh Ahh I see.

from rest-api-playlist.

pinglinh avatar pinglinh commented on August 15, 2024

Have you tried using MongoDB on a Mac

from rest-api-playlist.

Dynamic-Gravity avatar Dynamic-Gravity commented on August 15, 2024

@pinglinh No, I only use Linux. Post your repo down below and I'll see if I can get it working and send a PR.

from rest-api-playlist.

pinglinh avatar pinglinh commented on August 15, 2024

@Dynamic-Gravity Thanks!! https://github.com/pinglinh/rest_api_tutorial
It looks like the API can't connect to my database now...I'm trying to do a GET request on postman but it doesn't work

from rest-api-playlist.

pinglinh avatar pinglinh commented on August 15, 2024

@Dynamic-Gravity Ok it now works on windows machine (tried on Mac last night it didn't work) but in console it now says cannot read name of undefined so the problem is in the React code. If I try to not bind the handleSubmit method I get `cannot read property 'refs' of undefined.

from rest-api-playlist.

nikolisan avatar nikolisan commented on August 15, 2024

Did you use babel?

from rest-api-playlist.

Related Issues (20)

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.