File tree 4 files changed +14
-5
lines changed
src/higher_order_components
4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Frig
2
2
3
+ [ ![ Circle CI] ( https://circleci.com/gh/frig-js/frig/tree/develop.svg?style=svg )] ( https://circleci.com/gh/frig-js/frig/tree/develop )
4
+
3
5
![ Randy From Trailer Park Boys Saying Frig Off] ( img/randy_trailer_park_boys_frig_off.jpg )
4
6
5
7
React Forms made easy / Developed at [ TouchBistro] ( http://touchbistro.com/ ) in Toronto.
@@ -8,4 +10,4 @@ React Forms made easy / Developed at [TouchBistro](http://touchbistro.com/) in T
8
10
9
11
## License
10
12
11
- Frig is licensed under the [ MIT license] ( https://raw.githubusercontent.com/TouchBistro/frig/master/LICENSE ) .
13
+ Frig is licensed under the [ MIT license] ( https://raw.githubusercontent.com/TouchBistro/frig/master/LICENSE ) .
Original file line number Diff line number Diff line change
1
+ machine :
2
+ node :
3
+ version : v5.7.0
4
+
5
+ test :
6
+ pre :
7
+ - npm run lint:failfast
Original file line number Diff line number Diff line change 10
10
"scripts" : {
11
11
"test" : " mocha --compilers js:babel-core/register --require ./test/test_helper.js './test/**/*.js'" ,
12
12
"test:watch" : " npm run test -- --watch --watch-extensions js" ,
13
- "lint" : " eslint src/ || true" ,
14
- "lint-fail-fast " : " eslint . " ,
13
+ "lint" : " eslint src/ test/ || true" ,
14
+ "lint:failfast " : " eslint src/ test/ " ,
15
15
"preversion" : " ./scripts/preversion.sh" ,
16
16
"version" : " ./scripts/version.sh" ,
17
17
"postversion" : " ./scripts/publish_docs.sh && git push && git push --tags"
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import delegatesPublicFunctions from './delegates_public_functions.js'
7
7
* for accessing the child component and the options argument to the higher
8
8
* order function.
9
9
*/
10
- const HigherOrderComponent = ( ) => hocClass => opts => ComponentClass =>
10
+ const hoc = ( ) => hocClass => opts => ComponentClass =>
11
11
@delegatesPublicFunctions ( opts )
12
12
class HigherOrderComponent extends hocClass {
13
13
static originalClass = (
@@ -23,4 +23,4 @@ const HigherOrderComponent = () => hocClass => opts => ComponentClass =>
23
23
}
24
24
}
25
25
26
- export default HigherOrderComponent
26
+ export default hoc
You can’t perform that action at this time.
0 commit comments