Skip to content

Commit d2d24bc

Browse files
LukasBollsdirix
andauthored
Apply suggestions from code review
Co-authored-by: Stefan Dirix <[email protected]>
1 parent 99d4152 commit d2d24bc

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

content/docs/tutorial/dynamic-enum.mdx

+4-5
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const url = schema['x-url'];
6868
#### Initializing the React Context
6969

7070
Now that we have access to the API URL, we can use React Context to make this data available across our renderers.
71-
React Context allows you to share data globally within your application, enabling components deep in the component tree to access data without needing to pass properties through all parent elements.
71+
React Context allows you to share data deep in the component tree to access data without needing to pass additional properties through the component hierarchy.
7272
To set up the React Context for your API service, create it in your application as follows:
7373

7474
```js
@@ -90,7 +90,7 @@ Access the API service using the context:
9090
const api = React.useContext(APIContext);
9191
```
9292

93-
Changing the context's value will trigger a re-render of components that use it, making it a powerful tool for managing dynamic data.
93+
Changing the context's value will trigger a re-render of components that use it.
9494

9595

9696
### The Country Renderer
@@ -157,7 +157,7 @@ type JsonSchemaWithDependenciesAndEndpoint = JsonSchema & {
157157
endpoint: string;
158158
};
159159

160-
export const Country = (
160+
const CountryControl = (
161161
props: ControlProps & OwnPropsOfEnum & WithOptionLabel & TranslateProps
162162
) => {
163163
const { handleChange } = props;
@@ -255,5 +255,4 @@ export const Region = (
255255
);
256256
};
257257
```
258-
Again we need to create a [create a tester](./custom-renderers#2-create-a-tester) and [register](./custom-renderers#3-register-the-renderer) the new custom renderer.
259-
A running example of the scenario can also be seen at the [react-seed](https://github.com/eclipsesource/jsonforms-react-seed) app.
258+
Again we need to create a [create a tester](./custom-renderers#2-create-a-tester) and [register](./custom-renderers#3-register-the-renderer) the new custom renderer.

0 commit comments

Comments
 (0)