简体   繁体   English

反应路由器v0.13.3或v1.0.0-beta3?

[英]React router v0.13.3 or v1.0.0-beta3?

I want to build a basic app using react, flux (redux) and react-router. 我想使用react,flux(redux)和react-router构建一个基本的应用程序。 It will be a isomorphic (universal) app. 这将是一个同构(通用)应用程序。 I am confused about which react-router version should i use? 我对应该使用哪个反应路由器版本感到困惑?

0.13.3 or 1.0.0-beta3. 0.13.3或1.0.0-beta3。

Asking because 1.0 is cool and has better support for isomorphic apps and have simplified other things as well but it's still in beta. 问一下,因为1.0很酷,并且对同构应用程序有更好的支持,并且还简化了其他内容,但它仍处于beta版本。

Anybody knows when will 1.0 finalized? 有人知道1.0何时定稿?

Providing the module maintainers follow semver correctly then the following are some things you should be aware of when using a 0.xx versus 1.xx version. 如果模块维护者正确地遵循semver ,那么以下是使用0.xx1.xx版本时应注意的一些事项。

Major version zero (0.yz) is for initial development. 主要版本零(0.yz)用于初始开发。 Anything may change at any time. 随时可能发生任何变化。 The public API should not be considered stable. 公共API不应被认为是稳定的。

In this case there is the added complication of the -beta3 which I would take to mean that the interface has been locked down but there may be bugs. 在这种情况下, -beta3会增加一些复杂性,我-beta3这意味着接口已被锁定,但可能存在错误。

From the comments above, @Eelke is correct in that you may save time in the future by going straight to 1.0.0-beta3 but beware that you will be working with an unproven version. 从上面的意见,@Eelke是正确的,你可以通过直接将在未来节省时间1.0.0-beta3但要注意,你将有一个未经证实的版本来工作。

My advice would be that if you're looking to put this into production in a critical application where you may need some support then stick with the 0.13.3 for now. 我的建议是,如果您希望将其用于可能需要一些支持的关键应用程序中,请0.13.3使用0.13.3 If you have the time to 'go deep', dig around in the code (if you have to) and help the maintainers with feedback/bug reports then use 1.0.0-beta3 如果您有时间“深入研究”,请深入研究代码(如果需要),并帮助维护人员提供反馈/错误报告,然后使用1.0.0-beta3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM