19 |
20 |
21 |
22 |
30 |
31 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 Jed Watson
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | React Component Starter
2 | =======================
3 |
4 | __COMPONENT DESCRIPTION GOES HERE__
5 |
6 |
7 | ## Demo & Examples
8 |
9 | Live demo: __LINK TO LIVE DEMO__
10 |
11 | To build the examples locally, run:
12 |
13 | ```
14 | npm install
15 | gulp dev
16 | ```
17 |
18 | Then open [`localhost:8000`](http://localhost:8000) in a browser.
19 |
20 |
21 | ## Installation
22 |
23 | The easiest way to use My-Component is to install it from NPM and include it in your own React build process (using [Browserify](http://browserify.org), [Webpack](http://webpack.github.io/), etc).
24 |
25 | You can also use the standalone build by including `dist/my-component.js` in your page. If you use this, make sure you have already included React, and it is available as a global variable.
26 |
27 | ```
28 | npm install my-component --save
29 | ```
30 |
31 |
32 | ## Usage
33 |
34 | __EXPLAIN USAGE HERE__
35 |
36 | ```
37 | var MyComponent = require('my-component');
38 |
39 | Example
40 | ```
41 |
42 | ### Properties
43 |
44 | * __DOCUMENT PROPERTIES HERE__
45 |
46 | ### Notes
47 |
48 | __ADDITIONAL USAGE NOTES__
49 |
50 | ### License
51 |
52 | MIT. Copyright (c) 2014 Jed Watson.
53 |
54 |
--------------------------------------------------------------------------------
/dist/my-component.js:
--------------------------------------------------------------------------------
1 | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self),n.MyComponent=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o