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
| //https://drive.google.com/file/d/1tSb3-I-GKbiAWoNNv2mYd9PpWX8l254f/view?usp=sharing | |
| import { createStore, applyMiddleware } from "redux"; | |
| import React, { Component } from "react"; | |
| import { render } from "react-dom"; | |
| import { Provider, connect } from "react-redux"; | |
| import thunk from "redux-thunk"; | |
| import "./App.css"; | |
| const GETCOMMENTS = "GETCOMMENTS"; |
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
| import { createStore, applyMiddleware } from "redux"; | |
| import { connect, Provider } from "react-redux"; | |
| import React from "react"; | |
| import { render } from "react-dom"; | |
| import thunk from "redux-thunk"; | |
| //constant | |
| const UPDATEPROFILE = "UPDATEPROFILE"; | |
| const initalState = { |
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
| //Input and Reducer | |
| import { createStore } from "redux"; | |
| import { connect, Provider } from "react-redux"; | |
| import React from "react"; | |
| import { render } from "react-dom"; | |
| //constant | |
| const UPDATEPROFILE = "UPDATEPROFILE"; | |
| const initalState = { |
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
| //Input and Reducer | |
| import { createStore } from "redux"; | |
| import { Object } from "core-js"; | |
| //constant | |
| const UPDATEPROFILE = "UPDATEPROFILE"; | |
| const initalState = { | |
| id: 1, | |
| name: "defaultName" |
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
| /** | |
| * state | |
| */ | |
| import React, { Component } from "react"; | |
| import { render } from "react-dom"; | |
| import "./App.css"; | |
| import "bootstrap/dist/css/bootstrap.css"; | |
| class Profile extends Component { | |
| state = { |
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
| import React from "react"; | |
| import { render } from "react-dom"; | |
| import "bootstrap/dist/css/bootstrap.css"; | |
| /** | |
| * State | |
| * -> Another way to represent data in react | |
| * -> It is ment for biz logic | |
| * -> State is maintained, changed by a component itself | |
| * -> State is Changed by biz logic |
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
| import React from "react"; | |
| import { render } from "react-dom"; | |
| import "bootstrap/dist/css/bootstrap.css"; | |
| /** | |
| * State | |
| * -> Another way to represent data in react | |
| * -> It is ment for biz logic | |
| * -> State is maintained, changed by a component itself | |
| * -> State is Changed by biz logic |
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
| import React from "react"; | |
| import { render } from "react-dom"; | |
| import "bootstrap/dist/css/bootstrap.css"; | |
| import { USERS } from "./mock-data/users"; | |
| class UserList extends React.Component { | |
| state = { | |
| users: USERS, | |
| selectedUser: {} | |
| }; |
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
| import React from "react"; | |
| import { render } from "react-dom"; | |
| import "bootstrap/dist/css/bootstrap.css"; | |
| /** | |
| * State | |
| * -> Another way to represent data in react | |
| * -> It is ment for biz logic | |
| * -> State is maintained, changed by a component itself | |
| * -> State is Changed by biz logic |
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
| import React from "react"; | |
| import { render } from "react-dom"; | |
| import "bootstrap/dist/css/bootstrap.css"; | |
| /** | |
| * State | |
| * -> Another way to represent data in react | |
| * -> It is ment for biz logic | |
| * -> State is maintained, changed by a component itself | |
| * -> State is Changed by biz logic |
NewerOlder