Skip to content

Instantly share code, notes, and snippets.

View yoni333's full-sized avatar

yehonatan yehezkel yoni333

  • jerusalem
View GitHub Profile
npx create-react-app newapp // only first time to install react
create-react-app newapp // newapp is the name of new folder with json-pack
npm i redux --save // --save means to save in json package
npm i react-redux --save
npm i babel-plugin-transform-decorators-legacy --save
npm run eject
search for 'babel-loader' in webpack.congig.dev && webpack.config.prod
add ' plugins:['transform-decorators-legacy'],' insade options
in react we need to export Provider and connect from 'react-redux'
wrap - with Provider the main App component
npx create-react-app newapp // only first time to install react
create-react-app newapp // newapp is the name of new folder with json-pack
npm i redux --save // --save means to save in json package
npm i react-redux --save
npm i babel-plugin-transform-decorators-legacy --save
npm run eject
search for 'babel-loader' in webpack.congig.dev && webpack.config.prod
add ' plugins:['transform-decorators-legacy'],' insade options
in react we need to export Provider and connect from 'react-redux'
wrap - with Provider the main App component
@yoni333
yoni333 / README.md
Created February 5, 2018 17:15 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@yoni333
yoni333 / README.md
Created February 5, 2018 17:14 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})