{
    "componentChunkName": "component---src-templates-doc-tsx",
    "path": "/docs/customizing-a-flow",
    "result": {"data":{"doc":{"excerpt":"A Flow at it's minimum UI level is a  React  function component. This component can be anything, the minimum code to implement : A Flow is…","body":"var _excluded = [\"components\"];\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsxRuntime classic */\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"Customizing a Flow\"\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, _excluded);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"A Flow at it's minimum UI level is a \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://fr.reactjs.org\"\n  }, \"React\"), \" function component.\"), mdx(\"p\", null, \"This component can be anything, the minimum code to implement :\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-jsx\"\n  }, \"import React from 'react'\\n\\nexport default function CodeFlow() {\\n    return <div>My flow component</div>\\n}\\n\")), mdx(\"p\", null, \"A Flow is an interface element that will basically store it's data to the Program and generate appropriate code.\"), mdx(\"p\", null, \"It's then recommended to :\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"implement \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"serialize\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"deserialize\"), \" methods to store and load Flow data.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"implement \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"onCode\"), \" method that will generate code specific logic when executing the Flow on it's Client.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"implement \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"onDelete\"), \" method to pop the Flow on the current Rail.\")), mdx(\"p\", null, \"Have a look at \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://uniflow.io/library/uniflow-io-uniflow-flow-javascript\"\n  }, \"uniflow-flow-javascript\"), \" is the most basic Flow you can implement.\"));\n}\n;\nMDXContent.isMDXComponent = true;","frontmatter":{"title":"Customizing a Flow"},"fields":{"slug":"customizing-a-flow"},"parent":{"relativePath":"customizing-a-flow.md"}},"docNav":{"nodes":[{"title":"Prologue","items":[{"link":"/docs","title":"Introduction"},{"link":"/docs/concepts","title":"Concepts"},{"link":"/docs/faq","title":"FAQ"}]},{"title":"Getting Started","items":[{"link":"/docs/quick-start","title":"Quick Start"}]},{"title":"Creating a Flow","items":[{"link":"/docs/naming-a-flow","title":"Naming a Flow"},{"link":"/docs/customizing-a-flow","title":"Customizing a Flow"}]},{"title":"Creating a Client","items":[{"link":"/docs/naming-a-client","title":"Naming a Client"},{"link":"/docs/railing-a-client","title":"Railing a Client"},{"link":"/docs/adding-a-bridge-to-client","title":"Adding a Bridge to Client"},{"link":"/docs/linking-uniflow-to-client","title":"Linking Uniflow to Client"}]},{"title":"Contributing","items":[{"link":"/docs/submitting-to-library","title":"Submitting to Library"}]}]}},"pageContext":{"id":"cd66d0d2-02e4-58d3-9389-702017c29d4f","fields":{"slug":"customizing-a-flow"},"frontmatter":{"title":"Customizing a Flow"},"previous":{"id":"60cb1b1f-36ed-55c5-937b-cc02df09c4b7","fields":{"slug":"naming-a-flow"},"frontmatter":{"title":"Naming a Flow"}},"next":{"id":"dc23cf1e-98d3-5f7a-b722-b4ea3ad7f740","fields":{"slug":"naming-a-client"},"frontmatter":{"title":"Naming a Client"}}}},
    "staticQueryHashes": ["2578145036","2664713623","316950330"]}