File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 1+ We follow semantic versioning.
2+ 
3+ See the [ releases] ( https://github.com/ctrlplusb/react-sizeme/releases )  page on
4+ GitHub for information regarding each release.
Original file line number Diff line number Diff line change 1212[ ![ Travis] ( https://img.shields.io/travis/ctrlplusb/react-sizeme.svg?style=flat-square )] ( https://travis-ci.org/ctrlplusb/react-sizeme ) 
1313[ ![ Codecov] ( https://img.shields.io/codecov/c/github/ctrlplusb/react-sizeme.svg?style=flat-square )] ( https://codecov.io/github/ctrlplusb/react-sizeme ) 
1414
15- -  Blazingly fast. 😛 
16- -  Responsive Components! 
15+ -  Hyper Responsive Components! 
16+ -  Performant. 
1717-  Easy to use.
1818-  Extensive browser support.
19- -  Supports any Component type, i.e. stateless/class .
20- -  Really small  bundle size.
19+ -  Supports functional and class Component types .
20+ -  Tiny  bundle size.
2121
2222Use it via the render prop pattern (supports ` children `  or ` render `  prop):
2323
@@ -229,7 +229,7 @@ Now create a "parent" component providing it a `onSize` callback function to the
229229
230230``` jsx 
231231class  ParentComponent  extends  React .Component  {
232-   onSize  =  size  =>  {
232+   onSize  =  ( size )  =>  {
233233    console .log (' MyComponent has a width of' size .width )
234234  }
235235
Original file line number Diff line number Diff line change 145145  },
146146  "lint-staged" : {
147147    "*.js" : [
148-       " prettier --write \" src/**/*.js\" " 
149-       " git add" 
148+       " prettier --write \" src/**/*.js\" " 
150149    ]
151150  },
152151  "husky" : {
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments