// jQuery
$(document).ready(function() {
// code
})
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |