The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
fixed typo in docs\docs\contributor\frontend\advanced\best-practices.mdx (#1993)
Subash-Lamichhane92b34a76a2d7
diff --git a/docs/docs/contributor/frontend/advanced/best-practices.mdx b/docs/docs/contributor/frontend/advanced/best-practices.mdxindex 97f9a4edc55..a1cdcac6feb 100644--- a/docs/docs/contributor/frontend/advanced/best-practices.mdx+++ b/docs/docs/contributor/frontend/advanced/best-practices.mdx@@ -237,7 +237,7 @@ const Form = () => <EmailField value="[email protected]" />;## Component as props-Try as much as possible to pass uninstanciated components as props, so chilren can decide on their own of what props they need to pass.+Try as much as possible to pass uninstanciated components as props, so children can decide on their own of what props they need to pass.The most common example for that is icon components:@@ -256,7 +256,7 @@ const MyComponent = ({ MyIcon }: { MyIcon: IconComponent }) => {};```-For React to understand that the component is a component, you need to use PascalCase, to later instanciate it with `<MyIcon>`+For React to understand that the component is a component, you need to use PascalCase, to later instantiate it with `<MyIcon>`## Prop Drilling: Keep It Minimal