Giter VIP home page Giter VIP logo

react-http-request's People

Contributors

mbasso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-http-request's Issues

Access data from Express server and render by React

Abstract
I am trying to get some JSON formatted data from my Express app in backend side and render them using React Components.

Steps to reproduce

  1. Created a component which renders a listData specified in state property.
  2. Created another component that implements react-http-request to form a request to server.
  3. Get the data from second and inject to first one.

Problem
Can't find a way to perform the third step (or it's equivalent).

setState outside componentWillMount

Warning: setState(...): Can only update a mounting component. This usually means you called setS
tate() outside componentWillMount() on the server. This is a no-op. Please check the code for th
e Request component.

Cannot find modules after npm install

Hi,

I'm using a React+Webpack and after I run "npm install --save react-http-request", "react-http-request": "^1.0.2" shows up in the dependencies in my package.json. But when I do npm run build, I get an error saying cannot find module "react-http-request". Any hint on why this happens?

Thanks!

How to use headers?

Hi.

This error occurs when using headers.
bundle.js:9485 Warning: Failed prop type: Invalid prop headers of type string supplied to Request, expected object.

and I used headers as shown below.
headers='{"Authorization":"ApiKey api_key=blah blah"}'

What is the problem?
Thanks.

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.