Last active
June 10, 2020 13:08
-
-
Save dgreene1/2cd356e60cf909e59542f688dc9f7e44 to your computer and use it in GitHub Desktop.
on-premise out-of-date problem / forward compatible problem (what happens if a user hits the ui.2022.tsx page but it calls the server.2018.ts backend?)
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
export const getEndpoint = () => { | |
res.send({ | |
id: 1, | |
name: "Bob Smith", | |
age: 33, | |
}) | |
} |
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
export const getEndpoint = () => { | |
res.send({ | |
id: 1, | |
name: "Bob Smith", | |
age: 33, | |
address: "555 Hollywood Drive" | |
}) | |
} |
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
export const userProfileWidget = (user) => { | |
return <div> | |
<span>Name: {user.name}</span> | |
<span>Age: {user.age}</span> | |
</div> | |
} |
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
export const userProfileWidget = (user) => { | |
return <div> | |
<span>Name: {user.name}</span> | |
<span>Age: {user.age}</span> | |
<span>Address: {user.address}</span> // If this UI hits to 2018 backend, this will print "Address: undefined" | |
</div> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment