UNPKG
react-use-state-with-callback
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
use state with callback in hooks
y805939188/personal-common-tool-and-components
react-use-state-with-callback
/
mock-files
/
server.js
9 lines
(6 loc)
•
242 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
const
path =
require
(
'path'
);
const
HttpServer
=
require
(
'http-server'
);
const
server =
HttpServer
.
createServer
({
root
: path.
join
(__dirname,
'lib'
) }); server.
listen
(
20522
,
() =>
{
console
.
log
(
'正在监听20522端口的mock文件'
); });