In your command-line run the following commands:
brew doctorbrew update
| 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) { |
| export function getList() { | |
| return (dispatch) => { | |
| return axios.get( | |
| `sampleurl` | |
| headers: { | |
| 'Authorization': localdb.getItem('token') | |
| } | |
| }) | |
| .then((reponseList) => { | |
| dispatch({ |
| <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> |
In your command-line run the following commands:
brew doctorbrew update