by fzaninotto · 1y ago · 0 comments
const App = () => (
<Admin dataProvider={dataProvider}>
<Resource name="posts" list={PostList} />
</Admin>
)
const PostList = () => (
<List>
<DataTable>
<DataTable.Col source="date" />
<DataTable.Col source="title />
<DataTable.Col source="author" />
</DataTable>
</List>
);
The article mentions XML, but the true revolution is JSX itself, which lets you describe any piece of logic as a React element. This opens the possibility to create DSL for everything, just like in Python.[1]: https://github.com/marmelab/react-admin [2]: https://github.com/refinedev/refine
No comments yet.