Tag: js
-

Using React stateless components for quick prototyping
When you’re building a new app using React it’s nice to start laying out all the components you’ll want to use inside the components that you’re building. Unfortunately this can be a little slow because for each new component you have to: Create a new file Import that file Include React in the file Export…
-
ES2015 module re-exports
Today’s episode of TIL (“Today I Learned”) is: Did you know you can re-export modules in ES2015 (aka: ES6, aka: new JavaScript)? That is, you can import a module and export it again all in one line of code. Why would you want to do this? Well, first you need to know about the way…
-
Article on Game Design in JavaScript
http://www.smashingmagazine.com/2015/09/principles-of-html5-game-design/ And a bonus (linked from that article): an MDN article on 2d collision detection: https://developer.mozilla.org/en-US/docs/Games/Techniques/2D_collision_detection