This file contains 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
export const FETCH_ANIME = "FETCH_ANIME"; | |
export const FETCH_ANIME_SUCCESS = "FETCH_ANIME_SUCCESS"; | |
export const FETCH_ANIME_DETAIL = "FETCH_ANIME_DETAIL"; | |
export const FETCH_ANIME_DETAIL_SUCCESS = "FETCH_ANIME_DETAIL_SUCCESS"; |
This file contains 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 rootReducer from "./reducers"; | |
const store = createStore(rootReducer); | |
export default store; |
This file contains 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 { composeWithDevTools } from "redux-devtools-extension"; | |
import createSagaMiddleware from "redux-saga"; | |
import rootSaga from "./sagas"; | |
import rootReducer from "./reducers"; | |
const sagaMiddleware = createSagaMiddleware(); | |
const store = createStore( | |
rootReducer, | |
composeWithDevTools(applyMiddleware(sagaMiddleware)) |
This file contains 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 { BrowserRouter as Router, Switch, Route } from "react-router-dom"; | |
import Home from "./components/Home"; | |
import Details from "./components/Details"; | |
import "./App.css"; | |
function App() { | |
return ( | |
<Router> | |
<Switch> |
This file contains 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"; | |
function Details() { | |
return <h1>Details Component</h1>; | |
} | |
export default Details; |
This file contains 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"; | |
function Home() { | |
return <h1>Home Component</h1>; | |
} | |
export default Home; |
This file contains 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 { Button } from "@chakra-ui/core"; | |
import "./App.css"; | |
function App() { | |
return ( | |
<div className="App"> | |
<Button variantColor="green">Test Chakra UI</Button> | |
<h1>Learn Redux Saga</h1> | |
</div> |
This file contains 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 { theme, ThemeProvider, CSSReset } from "@chakra-ui/core"; | |
import ReactDOM from "react-dom"; | |
import App from "./App"; | |
ReactDOM.render( | |
<ThemeProvider theme={theme}> | |
<CSSReset /> | |
<App /> | |
</ThemeProvider>, |
This file contains 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 "./App.css"; | |
function App() { | |
return ( | |
<div className="App"> | |
<h1>Learn Redux Saga</h1> | |
</div> | |
); | |
} |
This file contains 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 ReactDOM from "react-dom"; | |
import App from "./App"; | |
ReactDOM.render(<App />, document.getElementById("root")); |