diff --git a/docs/tutorial/js-table.mdx b/docs/tutorial/js-table.mdx index 6bdbe5c24..abf80a5bc 100644 --- a/docs/tutorial/js-table.mdx +++ b/docs/tutorial/js-table.mdx @@ -62,11 +62,12 @@ You now have a Row type that describes the data you'll be storing and a descript ```typescript import {DataTableColumn, createTablePlugin} from 'flipper-plugin'; -module.exports = createTablePlugin({ +const {plugin, Component} = createTablePlugin({ columns, method: 'newRow', key: 'id', }); +export {plugin, Component}; ``` The above code snippet has the following properties: