From 84d1299f4b9a5b45e909bee1d82bdac16bb1fbb3 Mon Sep 17 00:00:00 2001 From: Adam Thompson Date: Thu, 23 May 2024 12:49:06 -0400 Subject: [PATCH] Adds cloneElement section --- STYLEGUIDE.md | 56 +++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 50 insertions(+), 6 deletions(-) diff --git a/STYLEGUIDE.md b/STYLEGUIDE.md index 5b21087443..bb5554e2d2 100644 --- a/STYLEGUIDE.md +++ b/STYLEGUIDE.md @@ -351,7 +351,7 @@ Minimizes inline JavaScript logic, and creates a named function that will show u #### Prefer -```tsx +```jsx const handleClick = e => { e.preventDefault(); setState(curr => !curr); @@ -362,7 +362,7 @@ const handleClick = e => { #### Avoid -```tsx +```jsx