> For the complete documentation index, see [llms.txt](https://gpeterhand.gitbook.io/react/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gpeterhand.gitbook.io/react/faq.md).

# FAQ

**Что использовать для разработки мобильных приложений?**

* Flutter
* React Native
* Kotlin
* Java

**Что нового в React**

* [simple-cache-provider](https://twitter.com/acdlite/status/969168681644179456)
* time slicing, suspense (Dan Abramov, 01.03.2018)
* тенденция *render props style*
* Сможет ли новый Context API в React 16.3 заменить Redux?
* New Context API, componentWillMount() deprecated, getDerivedStateFromProps()
* Error Boundary
* Fragments
* Portals
* Redux слишком сложен (actions, reducers, ...)? Или нет?
* [Relay](https://facebook.github.io/relay/)
* [GraphQL](http://graphql.org/), [Apollo](https://www.apollographql.com/)

> GraphQL неплохо показал себя в 2017 году и довольно быстро вытесняет REST. Apollo добавляет встроенную архитектуру offline-first клиентского кеширования, что делает Apollo + GraphQL серьёзной альтернативой (или дополнением) к Redux в 2018. [Источник](https://medium.com/@julia.volkova/%D1%82%D0%BE%D0%BF-javascript-%D0%B1%D0%B8%D0%B1%D0%BB%D0%B8%D0%BE%D1%82%D0%B5%D0%BA-%D0%B8-%D1%82%D0%B5%D1%85%D0%BD%D0%BE%D0%BB%D0%BE%D0%B3%D0%B8%D0%B9-%D0%BA%D0%BE%D1%82%D0%BE%D1%80%D1%8B%D0%B5-%D1%81%D1%82%D0%BE%D0%B8%D1%82-%D0%B8%D0%B7%D1%83%D1%87%D0%B8%D1%82%D1%8C-%D0%B2-2018-258d9638e612)

**Какие существуют UI-библиотеки для React**

[10 Best ReactJS UI Frameworks for rapid prototyping](https://hashnode.com/post/10-best-reactjs-ui-frameworks-for-rapid-prototyping-cit49tqx414z89c53equ4zc5k)

* [Material UI](https://material-ui-next.com/)
* [React Bootstrap](https://react-bootstrap.github.io/)
* [Semantic UI React](https://react.semantic-ui.com/introduction)
* [Belle](http://nikgraf.github.io/belle/)
* [React Foundation](https://foundation.zurb.com/)
* [Storybook](https://storybook.js.org/)
* [reactstrap](https://github.com/reactstrap/reactstrap)

**Какие есть фреймворки для Node.js?**

* [Express](https://github.com/expressjs/express)
* [Socket.io](https://github.com/socketio/socket.io/)
* [Meteor](https://github.com/meteor/meteor)
* [Koa](https://github.com/koajs/koa)
* [Sails](https://github.com/balderdashy/sails)
* [Hapi](https://github.com/hapijs/hapi)
* [restify](https://github.com/restify/node-restify)

**Какие есть фреймворки/boilerplate для React?**

* [Next.js](https://github.com/zeit/next.js/) ([Next.js to adopt React Router](https://react-etc.net/entry/next-js-to-adopt-react-router))
* [After.js](https://www.gitbook.com/book/yury72/react-tutorial/edit#) (If Next.js and React Router had a baby...)
* [Gatsby](https://www.gatsbyjs.org/)
* [create-react-app](https://www.gitbook.com/book/yury72/react-tutorial/edit#)
* [react-boilerplate](https://github.com/react-boilerplate/react-boilerplate)
* [razzle](https://github.com/jaredpalmer/razzle)
* [nwb](https://github.com/insin/nwb)

См. [таблицу](https://www.javascriptstuff.com/react-starter-projects/)

**Есть ли другие перспективные языки, кроме JavaScript?**

* Kotlin
* Fluffer
* Dart
* Haskel
* Elm
* Go
* Elixir
* Closure
* Rust

**Какие есть варианты организации управления состоянием приложения**

* local state
* lifted state
* context API
* внешний state (Redux)

**ESLint и Prettier - нужны оба или что-то одно?**

**Нужна ли типизация данных?**

TypeScript, Flow, Prop types?

**Webpack и Parcel - что лучше?**

**Является ли React действительно реактивным?**

Нет. В нем изначально не заложена работа с потоками. Эту проблему частично решает Redux.

**Есть ли аналоги (альтернативы) React + Redax**

* Angular
* Vue
* [ReactiveX](http://reactivex.io/) (RxJS)
* MobX
* Preact
* [Hyperapp](https://github.com/hyperapp/hyperapp)
* [Inferno](https://infernojs.org/)
* Ionic
