A
A
Anton Zhukov2015-02-11 21:30:53
JavaScript
Anton Zhukov, 2015-02-11 21:30:53

React.js question. Need some professional advice...?

I am designing a component in React.js. Its essence is as follows - to display a list of user questions. The list must be obtained from the server by id.
<QuestionList id="123"/>
How to properly separate the call to the server from the display of the component?
ideally, I would like to initialize the component with a ready-made list of questions, but I don’t know how to competently take it out of the component somewhere else

Answer the question

In order to leave comments, you need to log in

1 answer(s)
1
123 123, 2015-02-11
@MrCheater

Have you tried the Flux architecture? Here is the article . Flux describes data management within a React application.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question