@eschool/components
Version:
Digital Edu Management UI components
68 lines (49 loc) • 1.05 kB
Markdown
eSchool website UI Components.
```sh
npm install @eschool/components
```
```jsx
import React from "react";
import { Tree } from "@eschool/components";
import "@eschool/components/styles/global.css"; // CSS file
const treeData = [
{
title: "Root",
key: "0",
children: [
{ title: "Child 1", key: "0-0" },
{ title: "Child 2", key: "0-1" },
],
},
];
const App = () => {
return <Tree treeData={treeData} />;
};
export default App;
```
- This project works with **React version 18.2.0**.
Git Clone
```sh
git clone https://github.com/eschoolmn/components.git
```
🏗Build
```sh
npm run build
```
✨Version update
```sh
npm version patch
npm version minor
npm version major
```
🌍Publish Public
```sh
npm publish --access public
```
Distributed under the MIT License.