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
<div class='container'> | |
<h1>SASS - Variables</h1> | |
<h2><span>Basic</span> - Getting Started</h2> | |
<p id='mypara'>Lorem ipsum dolor sit amet, consectetur | |
adipiscing elit, sed do eiusmod tempor <br> | |
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis | |
nostrud exercitation ullamco laboris nisi</p> |
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
<div class='container'> | |
<h1>SASS - Variables</h1> | |
<h2><span>Basic</span> - Getting Started</h2> | |
<p id='mypara'>Lorem ipsum dolor sit amet, consectetur | |
adipiscing elit, sed do eiusmod tempor <br> | |
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis | |
nostrud exercitation ullamco laboris nisi</p> |
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
<html> | |
<head> | |
<title></title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> | |
<script src="https://fb.me/react-0.14.0.js"></script> | |
<script src="https://fb.me/react-dom-0.14.0.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.25/browser.min.js"></script> | |
</head> | |
<body> | |
<div id="container"></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
import React, { Component } from 'react'; | |
import { connect } from 'react-redux'; | |
import { fetchStuff } from '../actions/index'; | |
class WelcomeContainer extends Component { | |
render() { | |
return ( | |
<div className="welcome-container"> | |
Welcome 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
import React from 'react'; | |
const ExampleComponent = ({message}) => { | |
const showMessage = (event) => { | |
alert(`The message is: ${message}`); | |
}; | |
return ( | |
<div> | |
<a href="#" onClick={showMessage}>show me</a> |
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
import React, { Component } from 'react'; | |
class Welcome extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { message: 'Welcome to the Welcome Page!'}; | |
} | |
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
<html> | |
<head> | |
<script> | |
// http://www.randomsnippets.com/2008/02/21/how-to-dynamically-add-form-elements-via-javascript/ | |
var counter = 0; | |
var limit = 10; | |
function addNewGradeCheck(e, divName) { | |
e.preventDefault(); |
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
server { | |
root /var/www/Sites/jamesbuczkowski.com/public_html/dist; | |
server_name jamesbuczkowski.com www.jamesbuczkowski.com; | |
location / { | |
try_files $uri /index.html; | |
} | |
} |
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-webpack2-bootstrap4-sass", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"clean": "rimraf dist", | |
"buildDev": "npm run build && ./node_modules/.bin/webpack-dev-server", | |
"build": "npm run clean && webpack" | |
}, |
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') | |
path = require('path'), | |
ExtractTextPlugin = require("extract-text-webpack-plugin"), | |
HTMLWebpackPlugin = require('html-webpack-plugin'), | |
ExtractCSS = new ExtractTextPlugin("css/[name].[chunkhash].css"), | |
CopyWebpackPlugin = require("copy-webpack-plugin"); | |
module.exports = { | |
entry: { | |
vendor: [ |