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
// actions.js | |
import { FETCH_DATA } from "./actionTypes"; | |
export const fetchData = () => ({ | |
type: FETCH_DATA, | |
payload: {} | |
}); |
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
// List of actions | |
// - Fetch Data | |
// | |
export const FETCH_DATA = "FETCH_DATA"; |
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 } from "redux"; | |
import { devToolsEnhancer } from 'redux-devtools-extension'; | |
const reducer = (state = {}, action) => { | |
return state | |
} | |
export default createStore(reducer, devToolsEnhancer()); |
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 ReactDOM from 'react-dom'; | |
import './index.css'; | |
import App from './App'; | |
import * as serviceWorker from './serviceWorker'; | |
import { Provider } from 'react-redux' | |
import store from './redux/store' | |
const rootElement = document.getElementById('root') |
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 } from "redux"; | |
const reducer = (state = {}, action) => { | |
return state | |
} | |
export default createStore(reducer); |
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
lt -l mobile-api.app -s mobileapi -p 80 |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
[FacebookAuthorization createPlayerOnServerForEmailId:fbName:userId:andFacebookAccessToken:]_block_invoke_0 [Line 136] Error while logging player Error Domain=AFNetworkingErrorDomain Code=-1011 "Expected status code in (200-299), got 500" UserInfo=0xc8d8210 {NSLocalizedRecoverySuggestion=<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Action Controller: Exception caught</title> | |
<style> | |
body { background-color: #fff; color: #333; } | |
body, p, ol, ul, td { | |
font-family: helvetica, verdana, arial, sans-serif; |
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
Couldnot create player due to internet error Error Domain=AFNetworkingErrorDomain Code=-1011 "Expected status code in (200-299), got 500" UserInfo=0xabd9830 {NSLocalizedRecoverySuggestion=<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Action Controller: Exception caught</title> | |
<style> | |
body { background-color: #fff; color: #333; } | |
body, p, ol, ul, td { | |
font-family: helvetica, verdana, arial, sans-serif; |