Skip to content

Commit

Permalink
Update best-practices.mdx (#1098)
Browse files Browse the repository at this point in the history
Fixed typo in "Re-usable MRT Component" section
  • Loading branch information
andreawesleyciardi committed Apr 16, 2024
1 parent 41af73e commit 3b2eeb6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -297,7 +297,7 @@ export const CustomMRTTable = <TData extends MRT_RowData>({

By using the `TData` generic correctly, you can maintain type-safety in your re-usable component that will adapt to different types of data you will have throughout your application.

Though, be aware that the weakness of this is approach is that it will be more annoying to get access to the `table` instance or read table state where you need it.
Though, be aware that the weakness of this approach is that it will be more annoying to get access to the `table` instance or read table state where you need it.

When re-using your MRT table component, it will just look something like this:

Expand Down

0 comments on commit 3b2eeb6

Please sign in to comment.