Commit 91f166d6 authored by s8_vaitku_e's avatar s8_vaitku_e
Browse files

Add new file

parent 840d3a1f
import React from 'react'
const Result = ({ term , secretNum }) => {
let result;
if(term){
if(secretNum > term){
result = 'Mini lielaku skaitli'
}
else if(secretNum < term){
result ='Mini mazaku skaitli'
}
else if(secretNum == term){
result ='Tu atmineji skaitli'
}
else{
result ='Skaitlis nav atminets'
}
}
return <h3>{result}</h3>
}
export default Result
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment