Product Promotion
0x5a.live
for different kinds of informations and explorations.
GitHub - fulcrologic/fulcro: A library for development of single-page full-stack web applications in clj/cljs
A library for development of single-page full-stack web applications in clj/cljs - fulcrologic/fulcro
Visit SiteGitHub - fulcrologic/fulcro: A library for development of single-page full-stack web applications in clj/cljs
A library for development of single-page full-stack web applications in clj/cljs - fulcrologic/fulcro
Powered by 0x5a.live ๐
:source-highlighter: coderay :source-language: clojure :toc: :toc-placement: preamble :sectlinks: :sectanchors: :sectnums:
image:docs/logo.png[]
image:https://img.shields.io/clojars/v/com.fulcrologic/fulcro.svg[link=https://clojars.org/com.fulcrologic/fulcro] image:https://circleci.com/gh/fulcrologic/fulcro/tree/main.svg?style=svg["CircleCI", link="https://circleci.com/gh/fulcrologic/fulcro/tree/main"]
Fulcro is a library for building data-driven full-stack applications for the web, native, and desktop (via electron). It uses React and is written in Clojure and Clojurescript.
== Fulcro 3.6, and React 18 Notes
React 18 finally made changes that required some (minor) breaking changes to Fulcro. The support for async rendering in version 18 meant that we could no longer rely on dynamic vars in the internals (React 15 had no other way to do it).
As a result, some (hopefully never or rarely-used) features are deprecated or slightly modified:
- The dynamic vars
\*app*
,\*parent*
,\*shared*
,\*depth*
, and\*blindly-render?*
should not be used. An attempt was made to make most of them continue to work. - The 0-arity version of comp/current-state is no longer available. Pass
this
to it instead. - The 0-arity version of comp/shared is no longer available. Pass
this
orapp
to it instead. - Custom renderers (if you wrote one yourself) MUST now set a React context. See keyframe-renderer for details.
\*query-state*
still exists, but is for internal use only, and cannot be trusted within render. Pass app state to calls toget-query
if you're using dynamic queries.
Using full React 18 requires that you wrap your app with a version helper:
[source]
(ns example.app (:require [com.fulcrologic.fulcro.react.version18 :refer [with-react18]] [com.fulcrologic.fulcro.application :as app] ...)
(def app (with-react18 (app/fulcro-app {})))
== Trying it Out
The documentation for this version is in the http://book.fulcrologic.com/[Developer's Guide]. If you're using Fulcro 2, you can still read the http://book.fulcrologic.com/fulcro2[prior version of the guide].
There is also a https://github.com/fulcrologic/fulcro-template[template project] which you can use as a starting point.
Finally, there is a plenty of great resources collected at the https://fulcro-community.github.io/[Fulcro Community] site.
== Contributing to Fulcro
For learning more about how to contribute to the Fulcro project, please refer https://github.com/fulcrologic/fulcro/blob/main/CONTRIBUTING.md[CONTRIBUTING.md]
== Copyright and License
Fulcro is:
Copyright (c) 2017-2022, Fulcrologic, LLC The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Made with โค๏ธ
to provide different kinds of informations and resources.