Skip to content
Snippets Groups Projects
Commit b9866cee authored by jackmnolley's avatar jackmnolley
Browse files

Merge branch 'main' of git.unl.edu:jackmnolley/react-redux-starter-code into main

Checkpoint 1
parents 78a65323 92f78f62
No related branches found
No related tags found
No related merge requests found
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`the app runs 1`] = `<div />`;
exports[`the app runs 1`] = `
<div>
<div>
<h1>
Unit Selector
</h1>
<select
name="units"
>
<option
value="km"
>
km
</option>
<option
value="m"
>
m
</option>
<option
value="ft"
>
ft
</option>
<option
value="in"
>
in
</option>
</select>
</div>
<div>
<h1>
NumberInputField
</h1>
<input
placeholder="Enter # of {unitSelectorUnit}"
required=""
type="text"
/>
</div>
<h1>
Ouput Section
</h1>
<div>
<h1>
Unit Selector
</h1>
<select
name="units"
>
<option
value="km"
>
km
</option>
<option
value="m"
>
m
</option>
<option
value="ft"
>
ft
</option>
<option
value="in"
>
in
</option>
</select>
</div>
<div>
<h1>
Number Output Text
</h1>
</div>
</div>
`;
import { Route } from 'react-router-dom';
import { EndingNumberOutput } from './features/ending-number-output/endingNumberOutput.js';
import { NumberInputField } from './features/number-input-field/numberInputField.js';
import { UnitSelector } from './features/unit-selector/unitSelector.js';
export function App() {
return (
<>
<Route exact path={'/'}>
</Route>
<UnitSelector />
<NumberInputField />
<h1>Ouput Section</h1>
<UnitSelector />
<EndingNumberOutput />
</>
);
}
export function EndingNumberOutput() {
return (
<div>
<h1>Number Output Text</h1>
</div>
);
}
\ No newline at end of file
export function NumberInputField() {
return (
<div>
<h1>NumberInputField</h1>
<input required type="text" placeholder="Enter # of {unitSelectorUnit}"></input>
</div>
);
}
export function UnitSelector() {
return (
<div>
<h1>Unit Selector</h1>
<select name="units">
<option value="km">km</option>
<option value="m">m</option>
<option value="ft">ft</option>
<option value="in">in</option>
</select>
</div>
);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment