-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 81aad84
Showing
40 changed files
with
43,011 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
 | ||
|
||
React snippets and examples from thenewboston tutorials. | ||
|
||
### Links | ||
|
||
- [Support thenewboston](https://www.patreon.com/thenewboston) | ||
- [thenewboston.com](https://thenewboston.com/) | ||
- [Facebook](https://www.facebook.com/TheNewBoston-464114846956315/) | ||
- [Twitter](https://twitter.com/bucky_roberts) | ||
- [Google+](https://plus.google.com/+BuckyRoberts) | ||
- [reddit](https://www.reddit.com/r/thenewboston/) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
var gulp = require('gulp'); | ||
var sass = require('gulp-sass'); | ||
var cleanCSS = require('gulp-clean-css'); | ||
|
||
gulp.task('sass', function () { | ||
return gulp.src('src/scss/**/*.scss') | ||
.pipe(sass()) | ||
.pipe(cleanCSS({keepSpecialComments : 0})) | ||
.pipe(gulp.dest('src/css')) | ||
}); | ||
|
||
gulp.task('default', function (){ | ||
gulp.watch('src/scss/**/*.scss', ['sass'], ['minify-css']); | ||
}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "react-boilerplate", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"gulp": "^3.9.1", | ||
"gulp-clean-css": "^2.0.10", | ||
"gulp-sass": "^2.3.1" | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>React - Component</title> | ||
<script src="../../js/react.min.js"></script> | ||
<script src="../../js/react-dom.min.js"></script> | ||
<script src="../../js/browser.min.js"></script> | ||
</head> | ||
<body> | ||
|
||
<div id="container"></div> | ||
|
||
<script type="text/babel"> | ||
var BuckysComponent = React.createClass({ | ||
render: function() { | ||
return (<h2>This is a simple component</h2>); | ||
} | ||
}); | ||
ReactDOM.render(<BuckysComponent />, document.getElementById('container')); | ||
</script> | ||
|
||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>React - Template</title> | ||
<script src="../../js/react.min.js"></script> | ||
<script src="../../js/react-dom.min.js"></script> | ||
<script src="../../js/browser.min.js"></script> | ||
</head> | ||
<body> | ||
|
||
<div id="container"></div> | ||
|
||
<script type="text/babel"> | ||
ReactDOM.render( | ||
<h2>Welcome to React!</h2>, | ||
document.getElementById('container') | ||
); | ||
</script> | ||
|
||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* ReactDOMServer v15.1.0 | ||
* | ||
* Copyright 2013-present, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
*/ | ||
// Based off https://github.com/ForbesLindesay/umd/blob/master/template.js | ||
;(function(f) { | ||
// CommonJS | ||
if (typeof exports === "object" && typeof module !== "undefined") { | ||
module.exports = f(require('react')); | ||
|
||
// RequireJS | ||
} else if (typeof define === "function" && define.amd) { | ||
define(['react'], f); | ||
|
||
// <script> | ||
} else { | ||
var g; | ||
if (typeof window !== "undefined") { | ||
g = window; | ||
} else if (typeof global !== "undefined") { | ||
g = global; | ||
} else if (typeof self !== "undefined") { | ||
g = self; | ||
} else { | ||
// works providing we're not in "use strict"; | ||
// needed for Java 8 Nashorn | ||
// see https://github.com/facebook/react/issues/3037 | ||
g = this; | ||
} | ||
g.ReactDOMServer = f(g.React); | ||
} | ||
|
||
})(function(React) { | ||
return React.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* ReactDOMServer v15.1.0 | ||
* | ||
* Copyright 2013-present, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
*/ | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e(require("react"));else if("function"==typeof define&&define.amd)define(["react"],e);else{var f;f="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,f.ReactDOMServer=e(f.React)}}(function(e){return e.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* ReactDOM v15.1.0 | ||
* | ||
* Copyright 2013-present, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
*/ | ||
// Based off https://github.com/ForbesLindesay/umd/blob/master/template.js | ||
;(function(f) { | ||
// CommonJS | ||
if (typeof exports === "object" && typeof module !== "undefined") { | ||
module.exports = f(require('react')); | ||
|
||
// RequireJS | ||
} else if (typeof define === "function" && define.amd) { | ||
define(['react'], f); | ||
|
||
// <script> | ||
} else { | ||
var g; | ||
if (typeof window !== "undefined") { | ||
g = window; | ||
} else if (typeof global !== "undefined") { | ||
g = global; | ||
} else if (typeof self !== "undefined") { | ||
g = self; | ||
} else { | ||
// works providing we're not in "use strict"; | ||
// needed for Java 8 Nashorn | ||
// see https://github.com/facebook/react/issues/3037 | ||
g = this; | ||
} | ||
g.ReactDOM = f(g.React); | ||
} | ||
|
||
})(function(React) { | ||
return React.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* ReactDOM v15.1.0 | ||
* | ||
* Copyright 2013-present, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
*/ | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e(require("react"));else if("function"==typeof define&&define.amd)define(["react"],e);else{var f;f="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,f.ReactDOM=e(f.React)}}(function(e){return e.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED}); |
Oops, something went wrong.