diff --git a/.eslintrc.js b/.eslintrc.js
index 778655c..e00cedf 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -5,17 +5,22 @@ module.exports = {
node: true,
jest: true
},
- extends: ['airbnb-base'],
+ extends: ['plugin:react/recommended', 'airbnb-base'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
+ parser: 'babel-eslint',
parserOptions: {
+ ecmaFeatures: {
+ jsx: true
+ },
ecmaVersion: 2018,
sourceType: 'module'
},
rules: {
'comma-dangle': ['error', 'never'],
'no-param-reassign': ['error', { props: false }]
- }
+ },
+ plugins: ['react']
};
diff --git a/babel.config.js b/babel.config.js
index 6c3be4c..181bccb 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -1,6 +1,7 @@
module.exports = {
presets: [
[
+ '@babel/preset-react',
'@babel/preset-env',
{
targets: {
diff --git a/package.json b/package.json
index 5385d05..08c42ad 100644
--- a/package.json
+++ b/package.json
@@ -32,14 +32,23 @@
"url": "https://github.com/BuildForSDG/js-starter/issues"
},
"license": "MIT",
- "dependencies": {},
+ "dependencies": {
+ "bootstrap": "^4.5.0",
+ "react": "^16.13.1",
+ "react-bootstrap": "^1.0.1",
+ "react-dom": "^16.13.1"
+ },
"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.5",
+ "@babel/preset-react": "^7.9.4",
+ "babel-eslint": "^10.1.0",
"babel-jest": "^25.4.0",
- "eslint": "^6.8.0",
+ "eslint": "^7.0.0",
"eslint-config-airbnb-base": "^14.1.0",
"eslint-plugin-import": "^2.20.2",
+ "eslint-plugin-jsx-a11y": "^6.2.3",
+ "eslint-plugin-react": "^7.20.0",
"jest": "^25.4.0",
"parcel-bundler": "^1.12.4"
},
diff --git a/src/App.css b/src/App.css
new file mode 100644
index 0000000..6a40e87
--- /dev/null
+++ b/src/App.css
@@ -0,0 +1,4 @@
+#root {
+ width: 100vw;
+ height: 100vh;
+}
diff --git a/src/app.js b/src/app.js
index 941b387..eaf234e 100644
--- a/src/app.js
+++ b/src/app.js
@@ -1,3 +1,9 @@
-const app = async () => '#BuildforSDG';
+import React from 'react';
+import { Home } from './views';
-export default app;
+import './App.css';
+import 'bootstrap/dist/css/bootstrap.min.css';
+
+const App = () =>