Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. Javascript:
  2.  
  3. No react lifecycle hooks (only in 5% cases we will allow and that too with very little scripting).
  4. Components should have 90% html.
  5. Refer examples of coupon pages for mobile and desktop when in doubt. We have to get same smooth speed across complete site.
  6. Scripting business logic allowed only in Actions.
  7. use React.PureComponent with no extraneous props, always (Refer my latest changes in performance optimization).
  8.  
  9.  
  10. CSS guidlines:
  11.  
  12. Image: should have exact size in html with placeholder during load.
  13. No browser specific prefixes.
  14. keep 0 specificity and style with classes only. Never style elements directly.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement