react-fs-router 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +0 -12
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -69,13 +69,6 @@ Name, icon and index can be written in each file and react-fs-router will read a
69
69
  To use the generated files with react-router:
70
70
 
71
71
  ```javascript xml react
72
- // importing all of the files from the imports-exports file
73
- import * as Pages from "src/config/route";
74
- // importing the route objects
75
- import { routes } from "src/config/routeConfigs";
76
-
77
- import { Route, Switch } from "react-router-dom";
78
-
79
72
  function App() {
80
73
  const [pages, setPages] = useState();
81
74
 
@@ -123,11 +116,6 @@ The routes array generated by this library can be easily used with Ant designs p
123
116
  The following is an example using an hoc:
124
117
 
125
118
  ```javascript xml
126
- import { routes } from "../../config/routeConfigs";
127
- import * as Icons from "@ant-design/icons";
128
- import { Row } from "antd";
129
- import ProLayout, { PageContainer } from "@ant-design/pro-layout";
130
- import { Link } from "react-router-dom";
131
119
  function Layout(Component) {
132
120
  return class extends React.Component {
133
121
  state = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-fs-router",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "File-system based routing for React.",
5
5
  "main": "./index.js",
6
6
  "git repository": "https://github.com/Mehran9675/react-filesystem-routing",