gaearon/react-elmish-example

语言: HTML

git: https://github.com/gaearon/react-elmish-example

我个人尝试了解榆树建筑
My personal attempt at understanding Elm architecture
README.md (中文)

反应Elmish例子

这是我个人尝试更好地理解Elm Architecture并展示如何通过React组件模仿它。我也想更好地了解它的优点和缺点。

此特定存储库目前只有一个示例,其中包含一些组件:

  • 计数器组件
  • 列表组件增强器
  • 动作日志组件增强器
  • 这让我们渲染一个计数器列表......
  • ...带动作日志!
  • ...并撤消/重做!

请注意,状态位于应用程序的顶部。

运行

这是在Github Pages上。

你也可以

git clone https://github.com/gaearon/react-elmish-example.git
cd react-elmish-example
npm install
npm start
open http://localhost:3000

对不起,这次没有热重装!

执照

WITH

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

React Elmish Example

This is my personal attempt to understand Elm Architecture better and show how it can be imitated by React components. I'd also like to better understand its strengths and weaknesses.

This specific repository currently has just one example with a few components:

  • A counter component
  • A list component enhancer
  • An action log component enhancer
  • This lets us render a list of counters...
  • ... with action log!
  • ... and undo/redo!

Note that the state lives at the top of the application.

Running

It's up on Github Pages.

You can also

git clone https://github.com/gaearon/react-elmish-example.git
cd react-elmish-example
npm install
npm start
open http://localhost:3000

Sorry, no hot reloading this time!

License

MIT