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
const CommonAlert = props => { | |
return (<Alert kind={props.kind} show={props.isAlertShown}>{props.message}</Alert> ); | |
} | |
const SomePageUsingCommonAlert = () => { | |
return ( | |
<div> | |
<CommonAlert kind={} isAlertShown={} message={} /> | |
</div> | |
); |
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
const path = require('path'); | |
const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const CleanWebpackPlugin = require('clean-webpack-plugin'); | |
//const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; | |
const srcDirectory = path.resolve(__dirname, '../src'); | |
const buildDirectory = path.resolve(__dirname, '../build'); | |
module.exports = { | |
entry: { |
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
//Write a function findUniqueNumbers(num1, num2) that takes two integers and returns the unique numbers. | |
//For example: | |
//findUniqueNumbers(8, 8) => null | |
//findUniqueNumbers(88, 9) => 9 | |
//findUniqueNumbers(81233, 12798) => 79 | |
//findUniqueNumbers(123, 890) => 123890 | |
//findUniqueNumbers(9047662375, 631560977) => 412 | |
function findUniqueNumbers(num1, num2) { | |
//Convert the integer to string and apply spread operator to spread the values |