/React-Ahmedabad-Meetup

A repo for resources from the React Ahmedabad Meetups

Primary LanguageJavaScript

React-Ahmedabad-Meetup

A repo for resources from the React Ahmedabad Meetups

Part 1

Getting started with React

Kiran Kumar Abburi, React Bangalore Meetup Founder, http://webrafter.com, https://github.com/akiran

Topics covered in this talk

  • Basic principles of React
  • Composition of react component
  • Props Vs State
  • Communication between react components

Few useful Links

Part 2

Handling Data Gracefully

(Jeff Friesen, Co-Founder Snugg Home, https://github.com/jefffriesen)

Passing down callback functions or global event listeners get tedious. Facebook developered the Flux library, which was more of a pattern of data flow than a library. Dan Abramov (@dan_abramov) built a great implementation of the flux architecture called Redux.

Demo based on a repo that has already been set up. You can clone it and play with it yourself: https://github.com/jefffriesen/react-slingshot. The repo has React, Redux, tests, React Router, Babel, Webpack, SASS, Mocha and others. Original repo here: https://github.com/coryhouse/react-slingshot

If you haven't worked with those libraries, using a starter project like this is a great way to play with them.

Covered in demo:

React starter project

Huge list of start projects: http://andrewhfarmer.com/starter-project/ Electron: https://github.com/chentsulin/electron-react-boilerplate Repo used in demo: https://github.com/coryhouse/react-slingshot

Steps for most getting most starter project going:

  1. git clone git@github.com:jefffriesen/react-slingshot.git
  2. cd react-slingshot
  3. npm i
  4. npm start

Tutorials

Start with this (free): https://egghead.io/series/getting-started-with-redux More in depth (Immutable, tests): http://www.theodo.fr/blog/2016/03/getting-started-with-react-redux-and-immutable-a-test-driven-tutorial-part-1/

Awesome people to follow on Twitter

Part 3

Stylin' React

(Ben Mailian, Co-Founder Snugg Home, founder of Working Company in Ahmedebad)

Some cool talks on inline styling http://blog.vjeux.com/2014/javascript/react-css-in-js-nationjs.html https://www.youtube.com/watch?v=ERB1TJBn32c

Repos used in my demo These are installed using npm with the --save-dev flag • Boiler plate: https://github.com/gaearon/react-transform-boilerplate

In your webpack.config.js file under modules, add:

    { test: /\.css$/,
      loader: 'style-loader!css-loader' }

In .babelrc, add:

  "plugins": ["transform-decorators-legacy"],