Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
react-live-route
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fukai
react-live-route
Commits
8cd9ff2a
Commit
8cd9ff2a
authored
Mar 16, 2019
by
Wee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: stop ignore *.js
parent
7f01c87d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
9 deletions
+32
-9
.gitignore
.gitignore
+0
-1
.prettierrc.js
.prettierrc.js
+14
-0
README.md
README.md
+2
-2
mock.tsx
__test__/mock.tsx
+0
-6
jest.config.js
jest.config.js
+16
-0
No files found.
.gitignore
View file @
8cd9ff2a
...
...
@@ -2,6 +2,5 @@ es
dist
node_modules
umd
/*.js
!rollup.config.js
/coverage
.prettierrc.js
0 → 100644
View file @
8cd9ff2a
module
.
exports
=
{
printWidth
:
120
,
tabWidth
:
2
,
semi
:
false
,
singleQuote
:
true
// useTabs: false,
// trailingComma: 'none'
// bracketSpacing: true,
// jsxBracketSameLine: false,
// arrowParens: 'avoid',
// rangeStart: 0,
// rangeEnd: Infinity,
// proseWrap: "preserve"
}
README.md
View file @
8cd9ff2a
<p
align=
"center"
>
<h1
align=
"center"
>
Tinar
</h1>
<h1
align=
"center"
>
react-live-route
</h1>
<p
align=
"center"
>
An enhanced version of
**react-router-v4 Route**
Component that keeps route component alive on unmatched path and restore it completely on match path.
An enhanced version of
react-router-v4 Route
Component that keeps route component alive on unmatched path and restore it completely on match path.
<p>
<p
align=
"center"
>
<i>
...
...
__test__/mock.tsx
deleted
100644 → 0
View file @
7f01c87d
import
React
from
'react'
import
{
BrowserRouter
}
from
'react-router-dom'
// Just render plain div with its children
const
MockBrowserRouter
=
({
children
})
=>
<
div
>
{
children
}
</
div
>
export
default
MockBrowserRouter
jest.config.js
0 → 100644
View file @
8cd9ff2a
module
.
exports
=
{
roots
:
[
'<rootDir>'
],
moduleFileExtensions
:
[
'ts'
,
'tsx'
,
'js'
,
'jsx'
],
testRegex
:
'(/__tests__/.*|(
\\
.|/)(test|spec))
\\
.[jt]sx?$'
,
transform
:
{
'^.+
\\
.tsx?$'
:
'ts-jest'
},
globals
:
{
'ts-jest'
:
{
diagnostics
:
false
}
},
moduleNameMapper
:
{
'react-live-route'
:
'<rootDir>/src'
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment