From 263b24b6930731a6f1ba80234145d9c57683f0f1 Mon Sep 17 00:00:00 2001 From: Phuoc Nguyen Date: Fri, 15 Nov 2019 13:34:08 +0700 Subject: [PATCH] Add skeleton --- client/App.jsx | 9 +++++++++ client/index.html | 24 ++++++++++++++++++++++++ client/index.jsx | 6 ++++++ package.json | 4 ++++ 4 files changed, 43 insertions(+) create mode 100644 client/App.jsx create mode 100644 client/index.html create mode 100644 client/index.jsx diff --git a/client/App.jsx b/client/App.jsx new file mode 100644 index 0000000..e90afbb --- /dev/null +++ b/client/App.jsx @@ -0,0 +1,9 @@ +import React from 'react'; + +const App = () => { + return ( +
Test
+ ); +}; + +export default App; diff --git a/client/index.html b/client/index.html new file mode 100644 index 0000000..1186c4f --- /dev/null +++ b/client/index.html @@ -0,0 +1,24 @@ + + + CSS layout + + + + + + + + +
+ + + diff --git a/client/index.jsx b/client/index.jsx new file mode 100644 index 0000000..da9178b --- /dev/null +++ b/client/index.jsx @@ -0,0 +1,6 @@ +import React from 'react'; +import { render } from 'react-dom'; + +import App from './App'; + +render(, document.getElementById('root')); diff --git a/package.json b/package.json index 17388ee..fdc8686 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,9 @@ { "name": "csslayout", + "scripts": { + "dev": "parcel client/index.html --out-dir dist/client", + "build": "parcel build client/index.html --out-dir dist/client" + }, "dependencies": { "react": "^16.12.0", "react-dom": "^16.12.0",