This file contains hidden or 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
| //* Install netcoreapp2.0 in Linux https://www.microsoft.com/net/download/linux | |
| //* Open terminal and create project as | |
| //* dotnet new reactredux -o helloworld | |
| cd helloworld | |
| npm install | |
| dotnet run | |
This file contains hidden or 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 {fromJS} from 'immutable'; | |
| public compareObjects(...compareArguments): boolean { | |
| //For now just two arguments | |
| if (!compareArguments) | |
| return false; | |
| if (compareArguments.length < 2) | |
| return false; | |
| compareArguments.forEach((curr, index) => { | |
| if ((fromJS(curr).equals(fromJS(compareArguments[index + 1]))) == false){ |
This file contains hidden or 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 { | |
| BrowserRouter as Router, | |
| Link, | |
| Route, | |
| Switch, | |
| } from 'react-router-dom'; | |
| import * as React from 'react'; | |
| import * as ReactDOM from 'react-dom'; | |
| //import { Provider } from 'react-redux'; | |
| //import { createStore, applyMiddleware } from 'redux'; |
This file contains hidden or 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 { | |
| BrowserRouter as Router, | |
| Link, | |
| Route, | |
| Switch, | |
| } from 'react-router-dom'; | |
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import { Provider } from 'react-redux'; | |
| import { createStore, applyMiddleware } from 'redux'; |
This file contains hidden or 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 { | |
| BrowserRouter as Router, | |
| Link, | |
| Route, | |
| Switch, | |
| } from 'react-router-dom'; | |
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import { Provider } from 'react-redux'; | |
| import { createStore, applyMiddleware } from 'redux'; |
This file contains hidden or 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 Fraction{ | |
| constructor(top, bottom){ | |
| this.num = top; | |
| this.den = bottom; | |
| } | |
| show() { | |
| console.log('${this.num}/${this.den}'); | |
| } |
NewerOlder