Git Product home page Git Product logo

reactssrcasts's Introduction

ReactSSRCasts

Companion repo for a course hosted on Udemy.com

reactssrcasts's People

Contributors

stephengrider avatar

Stargazers

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

Watchers

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

reactssrcasts's Issues

Static media files, css, less styling

Please, I've watched the course, and deployed the system, but I need to include assets, I included style-loader, css-loader and tried to use in a component, if I use any import style 'style.css' for example, I get
ReferenceError: window is not defined
due to this line window.INITIAL_STATE = ${serialize(store.getState())}.

Url with param

Hi!
Im trying to add the user id in the url..like /users/1
I put 'user/:id' router´s file but the problem is that when i call the component with props it render twice.
'const UserPanel = (props) => {'

at first render get de props.params.id { id: 1 }
next render get { id: 'bundle.js' }

Do you know what may be happening?
Thanks a lot! your courses are very clear...

Nodemon build/bundle.js issue on Windows

I am running windows 8.1 and Node 7.1.0

I was having trouble running:

"dev:server": "nodemon --watch build --exec \"node build/bundle.js\""

until I removed the \" like so:

"dev:server": "nodemon --watch build --exec node build/bundle.js"

The error I got was:

Error

AZ Does it mean whenever client has a get request, server will iterate every route and fire API call for each one to fill Redux store?

app.get('*', (req, res) => {
  const store = createStore(req);

  const promises = matchRoutes(Routes, req.path)
    .map(({ route }) => {
      return route.loadData ? route.loadData(store) : null;
    })
    .map(promise => {
      if (promise) {
        return new Promise((resolve, reject) => {
          promise.then(resolve).catch(resolve);
        });
      }
    });

  Promise.all(promises).then(() => {
    const context = {};
    const content = renderer(req, store, context);

    if (context.url) {
      return res.redirect(301, context.url);
    }
    if (context.notFound) {
      res.status(404);
    }

    res.send(content);
  });
});

Looking at this part of code in index.js, this method is bind to every get request.

Does it mean there is a lot of overhead when user navigates frequently between screens?

Same issue raised here: https://www.udemy.com/server-side-rendering-with-react-and-redux/learn/v4/questions/4896838

Error: redirect_uri_mismatch

Lesson 69 "Header Customization": I'm trying to login with google, but keep getting the same error: redirect_uri_mismatch.(status code: 400). I think it's because my localhost using "http:" and query params:
redirect_uri: https://localhost:3000/api/auth/google/callback

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.