zohodesk_react v0.0.0
docs -
npm run docs --server:componentPath=./src/components/
Separate client app npm run start --server:host=vimal-zt58.tsi.zohocorpin.com --server:context=support
Separate client app run in prod mode npm run start --server:host=vimal-zt58.tsi.zohocorpin.com --server:context=support --server:prod=true
migration npm run start --react:mig=true --server:host=localhost --server:context=support
migration build npm run build:app --react:mig=true --server:host=localhost --server:context=support
components folder build command npm run build --module:mode=dev -- -w
#ATOM editor snippet install atom package (cmd+,)-> fz-atom-react-snippet, language-javascript-jsx create js file extension app component connect_component docs shortcut atom molecule organization page
#Note: Component folder only caps all other folder small docs component name should be ComponentNameState.docs.js double underscore component should have docs object with groupName install atom/sublime prettier for standard code format - like eclipse ctrl+shift+f configure setting on save enable and single quote enable style name should follow camelCase style apply only className not id based style *component docs object only available in docs build time not go for production so should follow DOCS check if (DOCS__) { ComponentName.docs = { componentGroup: 'Atom' }; } component use i18n key then docs should use i18n Provider - refer Content component in this library import no need to provide extension for js (.js) animation mount and unmount using css transition group - refer ReviewTime Component in this library callback function prefix with "on" example onChange this.props.variable => let first line render let {a,b}=this.props; Array iteration avoid for loop use forEach/map/filter/reduce/some/every *
*docs Note: HOC docs after export CustomViewPopup.docs = { componentGroup: 'Atom' }; export default Popup(CustomViewPopup);
5 years ago