- Create a folder at the root of your user home folder
(Example:
C:/Users/uname/) called.ssh. - Create the following files if they do not already exist (paths begin from the root of your user home folder):
.ssh/config
| // connect() is a function that injects Redux-related props into your component. | |
| // You can inject data and callbacks that change that data by dispatching actions. | |
| function connect(mapStateToProps, mapDispatchToProps) { | |
| // It lets us inject component as the last step so people can use it as a decorator. | |
| // Generally you don't need to worry about it. | |
| return function (WrappedComponent) { | |
| // It returns a component | |
| return class extends React.Component { | |
| render() { | |
| return ( |
| const removeSearchParam = param => { | |
| const url = new URL(window.location.href) | |
| url.searchParams.delete(param) | |
| window.history.replaceState(null, null, url) | |
| } |