Name: newslabs-cdn
Owner: BBC
Description: General cdn website for generic files, images, common js libraries etc
Created: 2017-12-13 10:06:58.0
Updated: 2018-05-23 16:51:55.0
Pushed: 2018-05-23 16:51:54.0
Homepage: null
Size: 4235
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
General cdn website for generic files, images, common js libraries etc
Following 'getting started' instructions at https://github.com/facebookincubator/create-react-app one ends up with an empty and functional React Single Page App.
The following changes were made to just two as-supplied files:
src/App.js now contains
rt logo from './logo.svg';
rt './App.css';
s App extends Component {
nder() {
return (
<div className="App">
<p className="App-intro">
To get started, edit <code>src/App.js</code> and save to reload.
</p>
</div>
);
rt default App;
The important departure from the as-supplied file is removal of the <header>
element.
public/index.html now contains (comments removed here):
l lang="en">
ead>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<meta name=application-name content=ReactDemo>
<meta name=author content=Dave>
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<script src=https://bbc.github.io/newslabs-cdn/app.js></script>
head>
ody>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="root"></div>
body>
ml>
The important changes from the as-supplied file is addition of the two <meta>
tags (application-name
& author
), and the addition of the <script src=https://bbc.github.io/newslabs-cdn/app.js></script>
line.