Giter VIP home page Giter VIP logo

graphql-react-typescript's Introduction

graphql-react-typescript

GRUPS IMPORTS

  1. Reactowe library,
  2. External library,
  3. Main components,
  4. Children components,
  5. Namespaces,
  6. utils,
  7. routes,
  8. constants,
  9. styles,

HOW TO IMPORTS

  1. import * as C from '@constants/index'
  2. import * as S from './styles'
  3. import * as UF from '@utils/useful-functions'
  4. import * as A from '@utils/arrays'

// not needed '' prettier fixed this lines please write only star

CONSTANTS INSIDE UTILS

Have all readonly values, something like labels, names, routes

NAMESPACES INSIDE CORE

Have all types from this app, there must me set a declartion types, but if you have one ore two parameters in function you can typed there.

HOW TO SET PROPS AND DESTRUCTURING

First put strings, numbers, booleans, and finally functions.

NODE-PRUNE CLEAN NOT NESSARY PACKAGES INTO NODE_MODULES

https://www.npmjs.com/package/node-prune

install this package global on your computer and when you are add new pacakges then please use this, because this clean/remove not nesseary packages and bundle is a less size

  1. npm install -g node-prune
  2. use script postinstall'

TRY THIS COMMAND TO SEARCH PACKAGES

du -sh ./node_modules/* | sort -nr | grep '\dM.' -> linux or os find ./node_modules/ -printf '%s %p\n'|sort -nr|head -> windows

graphql-react-typescript's People

Contributors

scherlock90 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.