This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class Main extends React.Component { | |
render() { | |
return React.createElement( | |
"div", | |
{ className: "row" }, | |
"HELLO TODO " | |
); | |
} | |
} | |
ReactDOM.render(React.createElement(Main, null), document.getElementById('container')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
render(){ | |
return( | |
<div className="row"> | |
HELLO TODO {/* to be changed*/} | |
</div>); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const webpack = require('webpack'); | |
const {resolve} = require('path'); | |
module.exports = { | |
context: resolve(__dirname, 'src'), | |
entry: [ | |
'./main.jsx' | |
], | |
output: { | |
path:resolve(__dirname, "public"), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ "presets": ["es2015", "react"] } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
/** | |
* Main react Javascript class | |
*/ | |
export default class Main extends React.Component{ | |
render(){ | |
return( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>React WebPack TodoList</title> | |
<link href="/public/bundle.css" rel="stylesheet"> | |
</head> | |
<body> | |
<div id="container" class="container"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "react-webpack-todolist", | |
"version": "0.0.1", | |
"author": "medKhelifi", | |
"scripts": { | |
"start": "webpack-dev-server --content-base ./ --open", | |
"build": "webpack" | |
}, | |
"dependencies": { | |
"bootstrap-sass": "^3.3.7", |
NewerOlder