Table of Contents generated with DocToc
While React
itself doesn't enforce any specific project strucutre or setup for that matter, it's always better to have
a boilerplate at disposal to kickstart a React
project.
After studying some of the available boilerplates, we found react-slingshot
from a Pluralsight Author coryhouse quite handy. However it is to be noted that it's just a
recommendation and subject to personal preference and at some times project requirements.
git checkout <master>
git merge origin <master>
git checkout <feature>
git rebase <master>
- deal with any conflicts
git add .
git rebase --continue
git push origin <feature> --force
- 😎
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
function throttle(callback, wait, context = this) { | |
let timeout = null | |
let callbackArgs = null | |
const later = () => { | |
callback.apply(context, callbackArgs) | |
timeout = null | |
} | |
return function() { |
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
/** | |
* Convert From/To Binary/Decimal/Hexadecimal in JavaScript | |
* https://gist.github.com/faisalman | |
* | |
* Copyright 2012-2015, Faisalman <fyzlman@gmail.com> | |
* Licensed under The MIT License | |
* http://www.opensource.org/licenses/mit-license | |
*/ | |
(function(){ |