Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77885801
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
Sat, Aug 17, 00:19
Size
555 B
Mime Type
text/x-java
Expires
Mon, Aug 19, 00:19 (2 d)
Engine
blob
Format
Raw Data
Handle
19938062
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