Skip to content

Commit b5b0f39

Browse files
committed
Adds better intros to recipes
1 parent 4a0cdb9 commit b5b0f39

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

website/docs/recipes/import-manipulation.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ title: Import manipulation
44
slug: /import-manipulation
55
---
66

7-
Manipulating imports will likely be one of the first and most common operations you do when writing codemods. So here are a few helpful examples to get you started.
7+
Modifying imports is one of the first and most common operations you are likely to do when writing codemods.
8+
9+
In this guide, we will explore how codemods can be used to make effective and efficient changes to javascript import statements.
10+
From changing function names to updating the location of imported code, and improving overall import structure.
11+
By following the steps outlined in this guide, you'll be able to maintain a well-organized,
12+
consistent codebase and unlock the many benefits that come with using codemods.
813

914
## Import declarations
1015

website/docs/recipes/react.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ title: React & JSX
44
slug: /react
55
---
66

7+
Codemods are an ideal solution for making significant changes to [React](https://reactjs.org/) and JSX code.
8+
The structure of JSX makes it easy for static analysis tools to understand and analyze,
9+
making it a popular choice for authors of React libraries, such as Design Systems.
10+
By providing codemods to users, they can streamline adoption, ensuring that component
11+
usage remains current and secure as the components evolve.
12+
13+
This guide provides information on transforming React and JSX code,
14+
including inserting or removing props, wrapping components, and managing render props.
15+
With the help of these techniques, you can make changes to your codebase with ease and confidence.
16+
717
## Props
818

919
### Inserting props

0 commit comments

Comments
 (0)