在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:Famous/framework开源软件地址:https://github.com/Famous/framework开源编程语言:JavaScript 96.6%开源软件介绍:Famous Framework (alpha)The Famous Framework is a new JavaScript framework for creating reusable, composable, and interchangeable UI widgets and applications. It balances declarative with imperative and functional with stateful, and it's built on top of the Famous Engine. IMPORTANT: This project is a developer preview; expect bugs to occur. Setup & installationMake sure you have Node.js installed, at least version Start by cloning this repository. Then, install dependencies with:
Once the install has finished, start up the local dev server:
Now surf to localhost:1618/. Creating a new componentIn this project, create a new component directory within Create a subdirectory within that one for your new component called In that subdirectory, create the file
In that file, add the framework boilerplate:
Note how the string If your local dev server is currently running, stop it now. The restart it with:
Now surf to localhost:1618/?ff=my-name:my-component. (Note the query string in the URL.) Changes you make to that file should trigger automatic reload. ExamplesCheck out This code would lives in the file
DocumentationFor API docs and guides, see famous.org/framework. How to make the most of the framework:1.) Color inside the lines: Although we've taken care to ensure you can break out of our guidelines and syntax when you need to, we think you'll have a better experience if you stick with them. In some cases, this means you'll have to approach familiar problems in a new way. 2.) Remember the microchip: In Famous Framework, every component is a black box. Sharing state between components is not provided for; you must build your app so that the inputs and outputs of each component connect and synchronize in the right way. LicenseCopyright (c) 2015 Famous Industries, Inc. MIT license. See LICENSE.txt. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论