|
|
|
|
|
by fzaninotto
337 days ago
|
|
This looks similar to React application frameworks like react-admin [1] or Refine [2]: 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 |
|