Adding note for update to v18 of react

This commit is contained in:
Chris Troutner
2022-07-27 15:19:15 -07:00
parent 65d1f42491
commit 0fc95d9630
5 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ function GetRestUrl (props) {
const [restURL] = useQueryParam('restURL', StringParam)
// console.log('restURL: ', restURL)
if(restURL) {
if (restURL) {
serverUrl = restURL
queryParamExists = true
}
+1 -1
View File
@@ -15,7 +15,7 @@ class Placeholder2 extends React.Component {
render () {
return (
<>
<p style={{padding: '25px'}}>This is placeholder View #2</p>
<p style={{ padding: '25px' }}>This is placeholder View #2</p>
</>
)
}
+1 -1
View File
@@ -15,7 +15,7 @@ class Placeholder3 extends React.Component {
render () {
return (
<>
<p style={{padding: '25px'}}>This is placeholder View #3</p>
<p style={{ padding: '25px' }}>This is placeholder View #3</p>
</>
)
}
+1 -1
View File
@@ -59,7 +59,7 @@ class ServerSelect extends React.Component {
Having trouble loading? Try selecting a different back-end server.
</h5>
<Form.Select onChange={(values) => this.selectServer(values)}>
<option>{this.props.queryParamExists ? (`${this.props.displayUrl}`) : (`Choose a back-end server`)}</option>
<option>{this.props.queryParamExists ? (`${this.props.displayUrl}`) : ('Choose a back-end server')}</option>
{items}
</Form.Select>
<br />
+3
View File
@@ -13,3 +13,6 @@ ReactDOM.render(
</QueryParamProvider>
</>
, document.getElementById('root'))
// Updating to React v18
// https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html#updates-to-client-rendering-apis