No description, website, or topics provided.
Clone or download
Latest commit 8b0905f Feb 13, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public Initial commit from Create React App Feb 12, 2020
src working app Feb 13, 2020
.env.development working app Feb 13, 2020
.gitignore Initial commit from Create React App Feb 12, 2020
README.md working app Feb 13, 2020
package-lock.json working app Feb 13, 2020
package.json working app Feb 13, 2020

README.md

#REACT environment variables https://create-react-app.dev/docs/adding-custom-environment-variables/

note: you will need to stop and restart the npm start create-react-app development environment/server to see this change

The app now has a fetch call to get the dogs programmed, but it doesn't work

because of CORS!!!!! 😡 CORS (Cross-Origin Resource Sharing)

https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

BROWSERS implement this for security reasons

https://en.wikipedia.org/wiki/Cross-origin_resource_sharing

To fix it you program your server to speak to certain clients that it recognizes

IOW server uses HTTP headers and sometimes also a response to an OPTIONS request to say who's allowed to connect and what they're allowed to do

SEMANTIC UI https://react.semantic-ui.com/

To install it,

npm install semantic-ui-css semantic-ui-react

Then index.js Add this line

import 'semantic-ui-css/semantic.min.css'

before this line

import './index.css';