This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import {renderToString} from 'react-dom/server'; | |
import {StaticRouter} from 'react-router-dom'; | |
import {createStore} from 'redux'; | |
import {Provider} | |
import 'react-redux'; | |
import reducer from 'reducer.js'; | |
import App from 'App.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FavouriteIcon extends Component { | |
constructor(props) { | |
super(props); | |
FavouriteIcon.defaultProps = { | |
style: { | |
position: 'relative', | |
top: 1, | |
color: 'grey', | |
fontSize: '26px' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// would like to remove the last object with duplicate value 'bob' | |
let objects = [{author: 'bob'}, {author: 'shazza'}, {author: 'softy mc dad bod'}, {author: 'cap'}, {author: 'bob'} ] |
NewerOlder