Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91370683
JournalList.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Nov 10, 10:49
Size
555 B
Mime Type
text/x-java
Expires
Tue, Nov 12, 10:49 (2 d)
Engine
blob
Format
Raw Data
Handle
22250435
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
JournalList.js
View Options
import
React
from
'react'
;
import
API
from
'../api'
;
export
default
class
JournalList
extends
React
.
Component
{
state
=
{
journals
:
[]
}
componentDidMount
()
{
this
.
getJournals
();
}
getJournals
=
async
()
=>
{
let
res
=
await
API
.
get
(
`
journal
/
`
);
let
{
data
}
=
res
.
data
;
this
.
setState
({
journals
:
data
});
};
render
()
{
return
(
<
ul
>
{
this
.
state
.
journals
.
map
(
journal
=>
<
li
key
=
{
journal
.
id
}
>
{
journal
.
name
}
ISSN
:
{
journal
.
issn
.
map
(
item
=>
<
p
>
-
{
item
}
<
/p>)}</li>)}
<
/ul>
)
}
}
Event Timeline
Log In to Comment