Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swifteditor
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
daixuan
swifteditor
Commits
f872a30c
Commit
f872a30c
authored
Jul 27, 2016
by
bert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
学习单元测试
parent
8f6672d0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
0 deletions
+30
-0
Root.js
src/views/Demo/Root.js
+19
-0
index.js
src/views/Demo/index.js
+11
-0
index.less
src/views/Demo/index.less
+0
-0
No files found.
src/views/Demo/Root.js
0 → 100644
View file @
f872a30c
import
React
,
{
Component
}
from
'react'
;
const
styles
=
{
height
:
'100%'
,
background
:
'#333'
}
class
Root
extends
Component
{
render
()
{
return
(
<
div
style
=
{
styles
}
>
<
h1
className
=
'welcome-header'
>
Welcome
to
testing
React
!<
/h1
>
<
/div
>
)
}
}
export
default
Root
;
\ No newline at end of file
src/views/Demo/index.js
0 → 100644
View file @
f872a30c
import
React
,
{
Component
}
from
'react'
;
import
{
render
}
from
'react-dom'
;
class
Root
extends
Component
{
render
()
{
return
<
h1
>
Hello
World
<
/h1>
;
}
}
export
default
Root
;
\ No newline at end of file
src/views/Demo/index.less
0 → 100644
View file @
f872a30c
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