In your command-line run the following commands:
brew doctor
brew update
In your command-line run the following commands:
brew doctor
brew update
<html> | |
<head> | |
<script type="text/javascript"> | |
// A CSRF token is required when making post requests in Django | |
// To be used for making AJAX requests in script.js | |
window.CSRF_TOKEN = "{{ csrf_token }}"; | |
</script> | |
</head> | |
<body> | |
<h2>My Blog Posts</h2> |
export function getList() { | |
return (dispatch) => { | |
return axios.get( | |
`sampleurl` | |
headers: { | |
'Authorization': localdb.getItem('token') | |
} | |
}) | |
.then((reponseList) => { | |
dispatch({ |
import React, { Component } from 'react' | |
import PropTypes from 'prop-types' | |
/** | |
* Utils | |
*/ | |
const removeElementByIds = ids => { | |
ids.forEach(id => { | |
const element = document.getElementById(id) | |
if (element && element.parentNode) { |