GithubHelp home page GithubHelp logo

omnyway-labs / simple-list-dnd Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 0.0 118 KB

Example Clojurescript webapp demonstrating integration with react-beautiful-dnd

License: Other

HTML 7.57% Clojure 92.43%

simple-list-dnd's Introduction

Example Clojurescript / Reagent use of React Beautiful Drag and Drop

Demonstrates a clojurescript implementation of a Simple List with react-beautiful-dnd.

Pretty much a direct translation of the JS/React Simple List Example

This first pass is mainly to get something to work in Clojurescript. It is not (yet) implemented in a more Clojurescript style but mostly a literal translation of the Javascript into Clojurescript.

The example runs inside a Devcard or standalone.

Available Scripts

In the project directory, you can run:

yarn cards

Runs the interactive live development enviroment.

This environment uses Devcards

yarn start

Runs the app in development mode.
Pretty much just the DND component right now, but without devcards

Open http://localhost:3000 to view it in the browser. The page will reload if you make edits.

yarn lint and yarn format

yarn lint checks the code for known bad code patterns using clj-kondo.

yarn format will format your code in a consistent manner using zprint-clj.

yarn report

Make a report of what files contribute to your app size.
Consider code-splitting or using smaller libraries to make your app load faster.

yarn server

Starts a Shadow CLJS background server.
This will speed up starting time for other commands that use Shadow CLJS.

General info

This project was bootstrapped with Create CLJS App.

The app uses Reagent, a minimalistic interface between ClojureScript and React.
You can use existing npm React components directly via a interop call.

Builds use Shadow CLJS for maximum compatibility with NPM libraries. You'll need a Java SDK (Version 8+, Hotspot) to use it.
You can import npm libraries using Shadow CLJS. See the user manual for more information.

License

Released under MIT License

Copyright 2020 Robert Berger

simple-list-dnd's People

Contributors

rberger avatar

Stargazers

 avatar

Watchers

Abhik Khanra avatar Ram Krishnan avatar icylisper avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.