Reloading Children Upon Database Change with React2019 Community Moderator ElectionHow does database indexing work?How do I quickly rename a MySQL database (change schema name)?How to list the tables in a SQLite database file that was opened with ATTACH?How do I unload (reload) a Python module?How do I reload .bashrc without logging out and back in?What are the options for storing hierarchical data in a relational database?Loop inside React JSXProgrammatically navigate using react routerstate is null after setting state in reactHow get value datapicker in react toobox custom?

(Codewars) Linked Lists-Sorted Insert

What is this tube in a jet engine's air intake?

What would be the most expensive material to an intergalactic society?

Are small insurances worth it?

How should I solve this integral with changing parameters?

Movie: boy escapes the real world and goes to a fantasy world with big furry trolls

I am the person who abides by rules, but breaks the rules. Who am I?

How do spaceships determine each other's mass in space?

Having the player face themselves after the mid-game

What happened to the colonial estates belonging to loyalists after the American Revolution?

How do I raise a figure (placed with wrapfig) to be flush with the top of a paragraph?

Smooth vector fields on a surface modulo diffeomorphisms

What is Tony Stark injecting into himself in Iron Man 3?

Professor forcing me to attend a conference, I can't afford even with 50% funding

Is it appropriate to ask a former professor to order a book for me through an inter-library loan?

How do you make a gun that shoots melee weapons and/or swords?

Why restrict private health insurance?

How to copy the rest of lines of a file to another file

Why is there an extra space when I type "ls" on the Desktop?

Are E natural minor and B harmonic minor related?

Logistic regression BIC: what's the right N?

If nine coins are tossed, what is the probability that the number of heads is even?

Too soon for a plot twist?

Sampling from Gaussian mixture models, when are the sampled data independent?



Reloading Children Upon Database Change with React



2019 Community Moderator ElectionHow does database indexing work?How do I quickly rename a MySQL database (change schema name)?How to list the tables in a SQLite database file that was opened with ATTACH?How do I unload (reload) a Python module?How do I reload .bashrc without logging out and back in?What are the options for storing hierarchical data in a relational database?Loop inside React JSXProgrammatically navigate using react routerstate is null after setting state in reactHow get value datapicker in react toobox custom?










1















I am still a major React beginner (self-learning) and can't seem to figure out how to reload a component's child elements when the database changes. Right now my set-up goes by the following image:
Component Layout Example.



I have three components contained in one larger component called Contact. The first component within Contact sits on top and is called SendAMessage, then there are two sitting underneath it called LeaveAComment and FetchComments (called CommentList in the image, but FetchComments in the actual code); LeaveAComment and FetchComments are both next to each other.



Right now FetchComments displays all comments contained in the database and LeaveAComment adds to the database. The problem is that the FetchComments component does not display any new comments that are created by the LeaveAComment component unless the tab is refreshed or navigated away from. I need help with trying to figure out a way to reload the displayed comment list contained in FetchComments with every database update. Or if there is a way to reload the FetchComments children from the 'Submit' button on LeaveAComment.



So far I understand that a parent component may pass props to a child component, but not necessarily the other way around; since LeaveAComment and FetchAComment are siblings, I am not sure what to do. Any help would be much appreciated. Here is the code I have so far:






export class LeaveAComment extends Component 
constructor(props)
super(props);

this.state =
name: "",
comment: "",
date: ""


this.onChangeName = this.onChangeName.bind(this);
this.onChangeComment = this.onChangeComment.bind(this);
this.onSubmit = this.onSubmit.bind(this);


onChangeName(e)
this.setState(
name: e.target.value
)


onChangeComment(e)
this.setState(
comment: e.target.value
)


onSubmit(e)
e.preventDefault();
console.log(`The values are $this.state.name, $this.state.comment, and $this.state.date`);

var data = new FormData(e.target);

//console.log(data)

fetch("api/Comment",
method: 'POST',
body: data
)

// Clear input boxes
this.setState(
name: "",
comment: "",
date: ""
)

// Re-load FetchComments.js here?



render()
return (
<div>
<header>
<h2> Leave A Comment </h2>
</header>

<form
onSubmit=this.onSubmit
method="POST">
<label> Name: </label>
<input
name= "name"
className="form-control" value=''
value=this.state.name
onChange=this.onChangeName/>
<br />

<label> Comment: </label>
<input
name="comment"
className="form-control"
value=this.state.comment
onChange=this.onChangeComment/>
<br />

<div
name="date"
className="form-control"
value=new Date().getDate()
hidden>
</div>

<input type="submit" value="Submit" className="btn btn-primary" />
</form>
</div>
);









export class FetchComments extends Component 
constructor()
super();

this.state =
loading: true,
commentList: []
;


componentDidMount()
fetch('api/Comment')
.then(res => res.json())
.then(cl => this.setState( loading: false, commentList: cl ,
() => console.log("successfully fetched all comments", cl)))


renderCommentTable()
return (
< div className = "container" >
<div className="panel panel-default p50 uth-panel">
<table className="table table-hover">
<thead>
<tr>
<th> Name </th>
<th> Comment </th>
<th> Time Stamp </th>
</tr>
</thead>
<tbody>
this.state.commentList.map(c =>
<tr key=c.id>
<td>c.name </td>
<td>c.comment</td>
<td> new Intl.DateTimeFormat('en-US').format(c.comentDate) </td>
</tr>
)
</tbody>
</table>
</div>
</div >
)


render()
let contents = this.state.loading ? <p> <img src="/Icons/LoadingPaopu.gif" alt="Loading Paopu Icon" /> </p>
: this.renderCommentTable(this.state.commentList);

return (
<div>
<h2> Comment List </h2>

contents
</div>
);













share|improve this question






















  • You need to use Redux (or alternative) framework to maintain the state of your application. This will allows components to listen(subscribe) to the sate changes and update themselves accordingly.

    – SAP
    Mar 7 at 0:14











  • Okay, thank you! I am going to look more into using it and will probably check back after I learn more.

    – Amy Dixon
    Mar 7 at 1:50











  • This may help you to get started medium.com/@supunbhagya/…

    – SAP
    2 days ago















1















I am still a major React beginner (self-learning) and can't seem to figure out how to reload a component's child elements when the database changes. Right now my set-up goes by the following image:
Component Layout Example.



I have three components contained in one larger component called Contact. The first component within Contact sits on top and is called SendAMessage, then there are two sitting underneath it called LeaveAComment and FetchComments (called CommentList in the image, but FetchComments in the actual code); LeaveAComment and FetchComments are both next to each other.



Right now FetchComments displays all comments contained in the database and LeaveAComment adds to the database. The problem is that the FetchComments component does not display any new comments that are created by the LeaveAComment component unless the tab is refreshed or navigated away from. I need help with trying to figure out a way to reload the displayed comment list contained in FetchComments with every database update. Or if there is a way to reload the FetchComments children from the 'Submit' button on LeaveAComment.



So far I understand that a parent component may pass props to a child component, but not necessarily the other way around; since LeaveAComment and FetchAComment are siblings, I am not sure what to do. Any help would be much appreciated. Here is the code I have so far:






export class LeaveAComment extends Component 
constructor(props)
super(props);

this.state =
name: "",
comment: "",
date: ""


this.onChangeName = this.onChangeName.bind(this);
this.onChangeComment = this.onChangeComment.bind(this);
this.onSubmit = this.onSubmit.bind(this);


onChangeName(e)
this.setState(
name: e.target.value
)


onChangeComment(e)
this.setState(
comment: e.target.value
)


onSubmit(e)
e.preventDefault();
console.log(`The values are $this.state.name, $this.state.comment, and $this.state.date`);

var data = new FormData(e.target);

//console.log(data)

fetch("api/Comment",
method: 'POST',
body: data
)

// Clear input boxes
this.setState(
name: "",
comment: "",
date: ""
)

// Re-load FetchComments.js here?



render()
return (
<div>
<header>
<h2> Leave A Comment </h2>
</header>

<form
onSubmit=this.onSubmit
method="POST">
<label> Name: </label>
<input
name= "name"
className="form-control" value=''
value=this.state.name
onChange=this.onChangeName/>
<br />

<label> Comment: </label>
<input
name="comment"
className="form-control"
value=this.state.comment
onChange=this.onChangeComment/>
<br />

<div
name="date"
className="form-control"
value=new Date().getDate()
hidden>
</div>

<input type="submit" value="Submit" className="btn btn-primary" />
</form>
</div>
);









export class FetchComments extends Component 
constructor()
super();

this.state =
loading: true,
commentList: []
;


componentDidMount()
fetch('api/Comment')
.then(res => res.json())
.then(cl => this.setState( loading: false, commentList: cl ,
() => console.log("successfully fetched all comments", cl)))


renderCommentTable()
return (
< div className = "container" >
<div className="panel panel-default p50 uth-panel">
<table className="table table-hover">
<thead>
<tr>
<th> Name </th>
<th> Comment </th>
<th> Time Stamp </th>
</tr>
</thead>
<tbody>
this.state.commentList.map(c =>
<tr key=c.id>
<td>c.name </td>
<td>c.comment</td>
<td> new Intl.DateTimeFormat('en-US').format(c.comentDate) </td>
</tr>
)
</tbody>
</table>
</div>
</div >
)


render()
let contents = this.state.loading ? <p> <img src="/Icons/LoadingPaopu.gif" alt="Loading Paopu Icon" /> </p>
: this.renderCommentTable(this.state.commentList);

return (
<div>
<h2> Comment List </h2>

contents
</div>
);













share|improve this question






















  • You need to use Redux (or alternative) framework to maintain the state of your application. This will allows components to listen(subscribe) to the sate changes and update themselves accordingly.

    – SAP
    Mar 7 at 0:14











  • Okay, thank you! I am going to look more into using it and will probably check back after I learn more.

    – Amy Dixon
    Mar 7 at 1:50











  • This may help you to get started medium.com/@supunbhagya/…

    – SAP
    2 days ago













1












1








1








I am still a major React beginner (self-learning) and can't seem to figure out how to reload a component's child elements when the database changes. Right now my set-up goes by the following image:
Component Layout Example.



I have three components contained in one larger component called Contact. The first component within Contact sits on top and is called SendAMessage, then there are two sitting underneath it called LeaveAComment and FetchComments (called CommentList in the image, but FetchComments in the actual code); LeaveAComment and FetchComments are both next to each other.



Right now FetchComments displays all comments contained in the database and LeaveAComment adds to the database. The problem is that the FetchComments component does not display any new comments that are created by the LeaveAComment component unless the tab is refreshed or navigated away from. I need help with trying to figure out a way to reload the displayed comment list contained in FetchComments with every database update. Or if there is a way to reload the FetchComments children from the 'Submit' button on LeaveAComment.



So far I understand that a parent component may pass props to a child component, but not necessarily the other way around; since LeaveAComment and FetchAComment are siblings, I am not sure what to do. Any help would be much appreciated. Here is the code I have so far:






export class LeaveAComment extends Component 
constructor(props)
super(props);

this.state =
name: "",
comment: "",
date: ""


this.onChangeName = this.onChangeName.bind(this);
this.onChangeComment = this.onChangeComment.bind(this);
this.onSubmit = this.onSubmit.bind(this);


onChangeName(e)
this.setState(
name: e.target.value
)


onChangeComment(e)
this.setState(
comment: e.target.value
)


onSubmit(e)
e.preventDefault();
console.log(`The values are $this.state.name, $this.state.comment, and $this.state.date`);

var data = new FormData(e.target);

//console.log(data)

fetch("api/Comment",
method: 'POST',
body: data
)

// Clear input boxes
this.setState(
name: "",
comment: "",
date: ""
)

// Re-load FetchComments.js here?



render()
return (
<div>
<header>
<h2> Leave A Comment </h2>
</header>

<form
onSubmit=this.onSubmit
method="POST">
<label> Name: </label>
<input
name= "name"
className="form-control" value=''
value=this.state.name
onChange=this.onChangeName/>
<br />

<label> Comment: </label>
<input
name="comment"
className="form-control"
value=this.state.comment
onChange=this.onChangeComment/>
<br />

<div
name="date"
className="form-control"
value=new Date().getDate()
hidden>
</div>

<input type="submit" value="Submit" className="btn btn-primary" />
</form>
</div>
);









export class FetchComments extends Component 
constructor()
super();

this.state =
loading: true,
commentList: []
;


componentDidMount()
fetch('api/Comment')
.then(res => res.json())
.then(cl => this.setState( loading: false, commentList: cl ,
() => console.log("successfully fetched all comments", cl)))


renderCommentTable()
return (
< div className = "container" >
<div className="panel panel-default p50 uth-panel">
<table className="table table-hover">
<thead>
<tr>
<th> Name </th>
<th> Comment </th>
<th> Time Stamp </th>
</tr>
</thead>
<tbody>
this.state.commentList.map(c =>
<tr key=c.id>
<td>c.name </td>
<td>c.comment</td>
<td> new Intl.DateTimeFormat('en-US').format(c.comentDate) </td>
</tr>
)
</tbody>
</table>
</div>
</div >
)


render()
let contents = this.state.loading ? <p> <img src="/Icons/LoadingPaopu.gif" alt="Loading Paopu Icon" /> </p>
: this.renderCommentTable(this.state.commentList);

return (
<div>
<h2> Comment List </h2>

contents
</div>
);













share|improve this question














I am still a major React beginner (self-learning) and can't seem to figure out how to reload a component's child elements when the database changes. Right now my set-up goes by the following image:
Component Layout Example.



I have three components contained in one larger component called Contact. The first component within Contact sits on top and is called SendAMessage, then there are two sitting underneath it called LeaveAComment and FetchComments (called CommentList in the image, but FetchComments in the actual code); LeaveAComment and FetchComments are both next to each other.



Right now FetchComments displays all comments contained in the database and LeaveAComment adds to the database. The problem is that the FetchComments component does not display any new comments that are created by the LeaveAComment component unless the tab is refreshed or navigated away from. I need help with trying to figure out a way to reload the displayed comment list contained in FetchComments with every database update. Or if there is a way to reload the FetchComments children from the 'Submit' button on LeaveAComment.



So far I understand that a parent component may pass props to a child component, but not necessarily the other way around; since LeaveAComment and FetchAComment are siblings, I am not sure what to do. Any help would be much appreciated. Here is the code I have so far:






export class LeaveAComment extends Component 
constructor(props)
super(props);

this.state =
name: "",
comment: "",
date: ""


this.onChangeName = this.onChangeName.bind(this);
this.onChangeComment = this.onChangeComment.bind(this);
this.onSubmit = this.onSubmit.bind(this);


onChangeName(e)
this.setState(
name: e.target.value
)


onChangeComment(e)
this.setState(
comment: e.target.value
)


onSubmit(e)
e.preventDefault();
console.log(`The values are $this.state.name, $this.state.comment, and $this.state.date`);

var data = new FormData(e.target);

//console.log(data)

fetch("api/Comment",
method: 'POST',
body: data
)

// Clear input boxes
this.setState(
name: "",
comment: "",
date: ""
)

// Re-load FetchComments.js here?



render()
return (
<div>
<header>
<h2> Leave A Comment </h2>
</header>

<form
onSubmit=this.onSubmit
method="POST">
<label> Name: </label>
<input
name= "name"
className="form-control" value=''
value=this.state.name
onChange=this.onChangeName/>
<br />

<label> Comment: </label>
<input
name="comment"
className="form-control"
value=this.state.comment
onChange=this.onChangeComment/>
<br />

<div
name="date"
className="form-control"
value=new Date().getDate()
hidden>
</div>

<input type="submit" value="Submit" className="btn btn-primary" />
</form>
</div>
);









export class FetchComments extends Component 
constructor()
super();

this.state =
loading: true,
commentList: []
;


componentDidMount()
fetch('api/Comment')
.then(res => res.json())
.then(cl => this.setState( loading: false, commentList: cl ,
() => console.log("successfully fetched all comments", cl)))


renderCommentTable()
return (
< div className = "container" >
<div className="panel panel-default p50 uth-panel">
<table className="table table-hover">
<thead>
<tr>
<th> Name </th>
<th> Comment </th>
<th> Time Stamp </th>
</tr>
</thead>
<tbody>
this.state.commentList.map(c =>
<tr key=c.id>
<td>c.name </td>
<td>c.comment</td>
<td> new Intl.DateTimeFormat('en-US').format(c.comentDate) </td>
</tr>
)
</tbody>
</table>
</div>
</div >
)


render()
let contents = this.state.loading ? <p> <img src="/Icons/LoadingPaopu.gif" alt="Loading Paopu Icon" /> </p>
: this.renderCommentTable(this.state.commentList);

return (
<div>
<h2> Comment List </h2>

contents
</div>
);









export class LeaveAComment extends Component 
constructor(props)
super(props);

this.state =
name: "",
comment: "",
date: ""


this.onChangeName = this.onChangeName.bind(this);
this.onChangeComment = this.onChangeComment.bind(this);
this.onSubmit = this.onSubmit.bind(this);


onChangeName(e)
this.setState(
name: e.target.value
)


onChangeComment(e)
this.setState(
comment: e.target.value
)


onSubmit(e)
e.preventDefault();
console.log(`The values are $this.state.name, $this.state.comment, and $this.state.date`);

var data = new FormData(e.target);

//console.log(data)

fetch("api/Comment",
method: 'POST',
body: data
)

// Clear input boxes
this.setState(
name: "",
comment: "",
date: ""
)

// Re-load FetchComments.js here?



render()
return (
<div>
<header>
<h2> Leave A Comment </h2>
</header>

<form
onSubmit=this.onSubmit
method="POST">
<label> Name: </label>
<input
name= "name"
className="form-control" value=''
value=this.state.name
onChange=this.onChangeName/>
<br />

<label> Comment: </label>
<input
name="comment"
className="form-control"
value=this.state.comment
onChange=this.onChangeComment/>
<br />

<div
name="date"
className="form-control"
value=new Date().getDate()
hidden>
</div>

<input type="submit" value="Submit" className="btn btn-primary" />
</form>
</div>
);






export class LeaveAComment extends Component 
constructor(props)
super(props);

this.state =
name: "",
comment: "",
date: ""


this.onChangeName = this.onChangeName.bind(this);
this.onChangeComment = this.onChangeComment.bind(this);
this.onSubmit = this.onSubmit.bind(this);


onChangeName(e)
this.setState(
name: e.target.value
)


onChangeComment(e)
this.setState(
comment: e.target.value
)


onSubmit(e)
e.preventDefault();
console.log(`The values are $this.state.name, $this.state.comment, and $this.state.date`);

var data = new FormData(e.target);

//console.log(data)

fetch("api/Comment",
method: 'POST',
body: data
)

// Clear input boxes
this.setState(
name: "",
comment: "",
date: ""
)

// Re-load FetchComments.js here?



render()
return (
<div>
<header>
<h2> Leave A Comment </h2>
</header>

<form
onSubmit=this.onSubmit
method="POST">
<label> Name: </label>
<input
name= "name"
className="form-control" value=''
value=this.state.name
onChange=this.onChangeName/>
<br />

<label> Comment: </label>
<input
name="comment"
className="form-control"
value=this.state.comment
onChange=this.onChangeComment/>
<br />

<div
name="date"
className="form-control"
value=new Date().getDate()
hidden>
</div>

<input type="submit" value="Submit" className="btn btn-primary" />
</form>
</div>
);






export class FetchComments extends Component 
constructor()
super();

this.state =
loading: true,
commentList: []
;


componentDidMount()
fetch('api/Comment')
.then(res => res.json())
.then(cl => this.setState( loading: false, commentList: cl ,
() => console.log("successfully fetched all comments", cl)))


renderCommentTable()
return (
< div className = "container" >
<div className="panel panel-default p50 uth-panel">
<table className="table table-hover">
<thead>
<tr>
<th> Name </th>
<th> Comment </th>
<th> Time Stamp </th>
</tr>
</thead>
<tbody>
this.state.commentList.map(c =>
<tr key=c.id>
<td>c.name </td>
<td>c.comment</td>
<td> new Intl.DateTimeFormat('en-US').format(c.comentDate) </td>
</tr>
)
</tbody>
</table>
</div>
</div >
)


render()
let contents = this.state.loading ? <p> <img src="/Icons/LoadingPaopu.gif" alt="Loading Paopu Icon" /> </p>
: this.renderCommentTable(this.state.commentList);

return (
<div>
<h2> Comment List </h2>

contents
</div>
);






export class FetchComments extends Component 
constructor()
super();

this.state =
loading: true,
commentList: []
;


componentDidMount()
fetch('api/Comment')
.then(res => res.json())
.then(cl => this.setState( loading: false, commentList: cl ,
() => console.log("successfully fetched all comments", cl)))


renderCommentTable()
return (
< div className = "container" >
<div className="panel panel-default p50 uth-panel">
<table className="table table-hover">
<thead>
<tr>
<th> Name </th>
<th> Comment </th>
<th> Time Stamp </th>
</tr>
</thead>
<tbody>
this.state.commentList.map(c =>
<tr key=c.id>
<td>c.name </td>
<td>c.comment</td>
<td> new Intl.DateTimeFormat('en-US').format(c.comentDate) </td>
</tr>
)
</tbody>
</table>
</div>
</div >
)


render()
let contents = this.state.loading ? <p> <img src="/Icons/LoadingPaopu.gif" alt="Loading Paopu Icon" /> </p>
: this.renderCommentTable(this.state.commentList);

return (
<div>
<h2> Comment List </h2>

contents
</div>
);







sql database reactjs components reload






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 6 at 22:23









Amy DixonAmy Dixon

134




134












  • You need to use Redux (or alternative) framework to maintain the state of your application. This will allows components to listen(subscribe) to the sate changes and update themselves accordingly.

    – SAP
    Mar 7 at 0:14











  • Okay, thank you! I am going to look more into using it and will probably check back after I learn more.

    – Amy Dixon
    Mar 7 at 1:50











  • This may help you to get started medium.com/@supunbhagya/…

    – SAP
    2 days ago

















  • You need to use Redux (or alternative) framework to maintain the state of your application. This will allows components to listen(subscribe) to the sate changes and update themselves accordingly.

    – SAP
    Mar 7 at 0:14











  • Okay, thank you! I am going to look more into using it and will probably check back after I learn more.

    – Amy Dixon
    Mar 7 at 1:50











  • This may help you to get started medium.com/@supunbhagya/…

    – SAP
    2 days ago
















You need to use Redux (or alternative) framework to maintain the state of your application. This will allows components to listen(subscribe) to the sate changes and update themselves accordingly.

– SAP
Mar 7 at 0:14





You need to use Redux (or alternative) framework to maintain the state of your application. This will allows components to listen(subscribe) to the sate changes and update themselves accordingly.

– SAP
Mar 7 at 0:14













Okay, thank you! I am going to look more into using it and will probably check back after I learn more.

– Amy Dixon
Mar 7 at 1:50





Okay, thank you! I am going to look more into using it and will probably check back after I learn more.

– Amy Dixon
Mar 7 at 1:50













This may help you to get started medium.com/@supunbhagya/…

– SAP
2 days ago





This may help you to get started medium.com/@supunbhagya/…

– SAP
2 days ago












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55033135%2freloading-children-upon-database-change-with-react%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55033135%2freloading-children-upon-database-change-with-react%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to get text form Clipboard with JavaScript in Firefox 56?How to validate an email address in JavaScript?How do JavaScript closures work?How do I remove a property from a JavaScript object?How do you get a timestamp in JavaScript?How do I copy to the clipboard in JavaScript?How do I include a JavaScript file in another JavaScript file?Get the current URL with JavaScript?How to replace all occurrences of a string in JavaScriptHow to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?

Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

List of MPs elected to the English parliament in 1640 (April) Contents List of constituencies and members See also Notes References Navigation menueNational Archives – The Glynde Place ArchivesCobbett's Parliamentary history of England, from the Norman Conquest in 1066 to the year 1803'Aldermen in Parliament', The Aldermen of the City of London: Temp. Henry III – 1912onepage&q&f&#61, false 229