Skip to content

Latest commit

 

History

History
68 lines (60 loc) · 1.74 KB

reactjs-cheat-sheet.md

File metadata and controls

68 lines (60 loc) · 1.74 KB

ReactJS cheat sheet

cheat sheets

Links

  • Container and presentation patterns
  • Component composition with Hooks
  • State management with Reducers
  • Data management with Providers
  • Component enhancement with HOCs (higher-order components)
  • Compound Components
  • Prop combination
  • Controlled inputs
  • Manage custom components with fowardRefs

Workplace with Visual code

  • download addon: firefox-devtools.vscode-firefox-debug
  • .vscode/launch.json
{
    "version": "0.2.0",
    "configurations": [
		{
			"name": "d3-population-born.html",
			"type": "firefox",
            "request": "launch",
            "reAttach": true,
            "file": "${workspaceFolder}/d3-population-born.html",
        }
    ],
	"compounds": [
		{
			"name": "server & extension",
			"configurations": [
                "d3-population-born.html"
			]
		}
	]
}
  • user settings -> find "firefox" -> "Firefox: Executable", write path to "Firefox Developer Edition"

  • create file in the root: jsconfig.json

{
    "compilerOptions": {
        "target": "ES6"
    },    
}

check variables

  <script>
    'use strict';