Initialisation de l’application React

This commit is contained in:
Mattéo Delabre 2019-11-17 19:17:15 -05:00
parent 099a032cb5
commit 004ef3302f
Signed by: matteo
GPG Key ID: AE3FBD02DC583ABB
7 changed files with 7462 additions and 0 deletions

3
.babelrc Normal file
View File

@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env", "@babel/preset-react"]
}

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
node_modules
.cache
dist

5
app/App.js Normal file
View File

@ -0,0 +1,5 @@
import React from 'react';
const App = () => <div>Je suis rechargé!</div>;
export default App;

11
app/index.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Bonjour</title>
</head>
<body>
<div id="root"></div>
<script src="index.js"></script>
</body>
</html>

5
app/index.js Normal file
View File

@ -0,0 +1,5 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.js';
ReactDOM.render(<App />, document.querySelector('#root'));

7419
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

16
package.json Normal file
View File

@ -0,0 +1,16 @@
{
"name": "wikimedica-disease-search",
"version": "0.1.0",
"private": true,
"main": "index.js",
"devDependencies": {
"@babel/core": "^7.7.2",
"@babel/preset-env": "^7.7.1",
"@babel/preset-react": "^7.7.0",
"parcel-bundler": "^1.12.4"
},
"dependencies": {
"react": "^16.12.0",
"react-dom": "^16.12.0"
}
}