profectus-docs/assets/guide_creating-your-project_utils.md.CRAKB0WF.lean.js

1 line
1.4 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{_ as i,c as o,j as e,a as t,o as s}from"./chunks/framework.P9qPzDnn.js";const h=JSON.parse('{"title":"Utilities","description":"","frontmatter":{},"headers":[],"relativePath":"guide/creating-your-project/utils.md","filePath":"guide/creating-your-project/utils.md","lastUpdated":1737056209000}'),r={name:"guide/creating-your-project/utils.md"};function n(c,a,l,u,d,p){return s(),o("div",null,a[0]||(a[0]=[e("h1",{id:"utilities",tabindex:"-1"},[t("Utilities "),e("a",{class:"header-anchor",href:"#utilities","aria-label":'Permalink to "Utilities"'},"")],-1),e("p",null,"There are often concepts that aren't inherent to a single feature, but rather work with joining different features together. For example, a reset clickable that activates a conversion and resets a tree, which happens to be a common use case but isn't inherent to clickables, conversions, or trees.",-1),e("p",null,[t("These are perfect situations for utilities, and so to encourage creators to learn to identify and take advantage of these situations, a file called "),e("code",null,"src/data/common.tsx"),t(" has been created to demo some of the more common utility functions a project might use. Adding new utilities to this file is encouraged, as is creating utils in general. It also works as a good stepping stone to creating your own features.")],-1)]))}const m=i(r,[["render",n]]);export{h as __pageData,m as default};