Coder Social home page Coder Social logo

reactcasts's Introduction

ReactCasts

This repository has code and outlines for ReactCasts.

Full videos at the YouTube Channel: youtube.com/c/reactcasts.

Request A Screencast

I have some ideas for topics to cover, but if you want to see some topics covered in a future screencast, I'd like to hear from you.

Please submit an issue with the request a screencast label and make sure to include a good description on what you want to see!

You can also participate by adding your reactions and contributing to the discussion on suggested topics: https://github.com/cassiozen/ReactCasts/issues/labels/request%20a%20screencast.

Issues With Code, Documentation, etc...

If you see any problems with code, documentation, or anything else in this repository, please submit an issue with the bug label and I'll fix it as soon as I can. Pull requests are also welcome.

reactcasts's People

Contributors

cassiozen avatar dependabot[bot] avatar lewisblackwood avatar youbiak 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  avatar  avatar

reactcasts's Issues

ReactCasts #12 - `NODE_ENV` is "undefined"

I initially hand-coded along with the video, but ended up with errors that I couldn't fix.

Assuming I still had a typo lurking somewhere, I cloned, installed, and tried to run your code directly, only to get the same errors.

Steps to reproduce:

  1. git clone [email protected]:cassiozen/ReactCasts.git
  2. cd ReactCasts/episode12
  3. npm install
  4. npm run start-dev

Initial Error that I'm getting if I do the above steps in Atom's platform-ide-terminal:
(Not sure why it makes a difference, but since it does, maybe it's an important clue. And, technically, I did steps 1 & 2 in Terminal, then did an atom ., then did steps 3 & 4 in Atom.)

    ERROR in ./src/browser/index.js
    Module build failed: Error: Using `babel-preset-react-app` requires that yo
u specify `NODE_ENV` or `BABEL_ENV` environment variables. Valid values are "de
velopment", "test", and "production". Instead, received: "undefined". (While pr
ocessing preset:/Users/metasean/dev/ReactCasts/ReactCasts/episode12/node_module
s/babel-preset-react-app/index.js")

Subsequent Error that I'm getting if I do the above steps in Atom's platform-ide-terminal:
AND
Error that I get if I do all of the above steps directly in a normal OS X terminal

/Users/metasean/dev/ReactCasts/ReactCasts/episode12/server.js:71
throw new Error("Module build failed: Error: Using `babel-preset-react-app` req
uires that you specify `NODE_ENV` or `BABEL_ENV` environment variables. Valid v
alues are \"development\",\"test\", and \"production\". Instead, received: \"un
defined\". (While processing preset:\"/Users/metasean/dev/ReactCasts/ReactCasts
/episode12/node_modules/babel-preset-react-app/index.js\")

FWIW: my node --version is v8.1.3

ssr authentication with passport.js

It's possible to pass req.user auth to the client side? or maybe a better choice is save the details in local Storage?

I don't want to use redux in the auth part.

If someone has a good example to auth in react ssr...

Redux Middleware API

Redux Middleware is an extension point that let's you insert some code that will get invoked between action dispatching, and the moment it reaches the reducer.

Redux middleware can be used for logging, crash reporting, talking to an asynchronous API, routing, and more.

Ideas for examples:

  • Log middleware
  • Persist (localstorage) middleware
  • Analytics Middleware
  • Fetch Middleware

References:

ES6 + React

There are a lot of cool new capabilities that es6 brings which compliment react nicely, spreading properties via {...props} for example. Other things that might be worth mentioning or exploring:

  • decorators
  • classes & class methods
  • destructuring args
  • {...rest} 😁

Using Portals

Sometimes you need to manage components that are outside of the parent and perhaps attached to the body, specifically thinking about modals, popovers, etc. https://github.com/tajo/react-portal is a reasonable implementation of this.

Using Ramda: Functional techniques and solutions in React/Redux screencast

Request a Screencast
Many people use array functions like filter, map, reduce etc.
Also a lot of people (still) use lodash as a utility library.
It would be nice to see your perspective on what Ramda would bring to the table in comparison and what code quality gains could be had by using this library instead.

Immutability

Immutability is a recurrent theme in the React ecosystem: State management libraries like Redux requires that you treat your data as immutable, or things will just not work. But even in plain React, with local component state, we're also encouraged to treat data as immutable.

Talk about immutability in plain Javascript AND/OR using libraries such as Immutable.js

PropTypes

New React Developers are not using PropTypes, and the fact that it's now a separate package will only make it less and less used.

So, although this probably would not be a not very popular screencast, I think it's important to show what types on a broader sense are, and how one can use at least proptypes in JavaScript (since it has no types) to write better components.

Important topics:

  • What are types
  • How types can be useful (show example in typescript or reason)
  • If you use Redux, you're already using types
  • proptypes tutorial

Config setup for development/production

This could be a broad topic, but here is a list of things I had in mind:

  • setup a config with dev/staging/prod constants (i.e. API root url, emails, etc)
  • setup Webpack to use appropriate config upon each build (based on ENV variable)
  • use the config constants in the app
    Bonus: review options for fetching data (fetchAPI, superagent, bluebird, etc)

I specifically looking for a clean way to organize my API layer and upon dev/staging/prod build use appropriate URLs.

Thank you

Server Side Rendering in React

Explaining how server side rendering would work for react and how to configure Server Side Rendering in a React Application.

React Casts #13 - authenticate initialAction request

If the server endpoints are secured and require authentication, the client side can send cookies / JWT to authenticate when they request something, but how would you authenticate a request dispatched when doing the initial render on the server ? (since the request is internal)

Redux: Flux Standard Action and Redux-Actions

Flux Standard Action is a common pattern for creating actions for Flux-like libraries (Redux Included). They're human friendly and help enable the creation of useful tools and abstractions.

redux-actions is one of such tools. It helps cope with Redux boilerplate in a functional way by providing utility functions to create and handle standard actions.

References:

https://github.com/acdlite/redux-actions (oficial repo)

Feed to follow new casts?

Hi guys,

I really like the ReactCasts episodes, would be nice if there was a feed I can follow to be notified of new episodes.

Ideally some RSS feed or email subscription.
Or at least, if you'd use a proper git release tag for each episode added, I can hook up to that.

Thanks!

Creating reusable components

In relation to request #22 "React in Production / Large App Overview", it would be interesting to see how you construct and deploy individual components that are reusable across applications (e.g. npm modules, but could be linked or included in other ways).

Of particular interest, most component tutorials I have seen have not acknowledged potential isomorphic/universal usage.

Financial Charts

I thought this would be good example of React's responsive UI integrated with streaming data feed.

Context - Part 2

Continuation of episode 4.

Should cover:
1 - Use a subscription model for updating context content
2 - Use HOC to make it easier to update a project in case the Context API changes

Discussion: Format to visually explain concepts

Hey Guys, I'm experimenting with different ways of explaining concepts visually.

Because what usually happens while I'm explaining something is that the video is showing a blank editor. This happened in almost all episodes so far.

This is my first try: If you have the time to take a look, I would love to hear your opinion:

(Disclaimer: The actual content I was explaining is not important - I just improvised something to show the new visual)

https://youtu.be/soMI7BAVtLU

(I'm specifically inviting all of you who have contributed so far: @markerikson, @neeldeep, @jpollard-cs, @asifmom, @pawel2105, @czanella, @zsherman, @thelastnode and @aconanlai)

Undo/Redo in Redux

Hey, could you please make a video about Redux Undo/Redo . Been stuck with it.

Using web socket data feed

Splited #35 in two separate requests.

Original Message
“I thought this would be good example of React's responsive UI integrated with streaming data feed.”

Windowing, scrolling, virtualization

React can be pretty powerful for building performant scrolling experiences and there are a bunch of techniques out there that can help you pull it off.

Redux-saga

Have been digging into redux-saga a bit and it can be a little hard to wrap your mind around at first. I think a screencast on this would be pretty helpful.

Flux, Redux & cia.

I'd love to see a ReactCast about Flux, Redux & other ways to organize a big project that uses React. I like Flux & Redux and I understand the motivations behind them, but I'm not 100% sold on any of them.

Also, bug report: in IE9 + Windows Vista, the name of the channel appears as AngularCasts. Please fix.

Drag & Drop

I think it'd be nice to see a demonstration of how to handle this the react way™

Idiomatic Endless Scroll

Endless scroll is an alternative to click-based pagination system. There are tons of Endless Scroll plugins and tutorials out there, but how about something in idiomatic React?

Gatsby

React is awesome if you want to create a Single Page Application. But what if you just need a simple blog, or a landing page? Static site builders are awesome for this, and Gatsby is the most awesome static site builder using React components for pages.

Big / Complex forms in React

Controlled form components are great for small forms, but what about the really big and complex forms? How to deal with validation? Which are the performance issues (if any)?

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.