19
leocast
8d

Hello! I invite you guys to try my easy-to-use library for coding in JSX without React!

https://github.com/Leoocast/Prakma

Comments
  • 10
    You had me sold at simple, powerful, awesome. What more could someone ask for from a js framework.
  • 2
    The espania comments kind of bother me.

    Also, polymer already made a super efficient, even smaller renderer that’s compatible with the hyperscript api
  • 5
    Please tell me those tarballs are in there by accident D:
  • 2
    Do you have accompanying type declaration files?
  • 0
    @SortOfTested What do you mean ?
  • 4
    @leocast
    d.ts files to go with the contracts and structures. Most js libs ship with them nowadays, they make it easier to grok third party code.

    https://definitelytyped.org/
    https://typescriptlang.org/docs/...
  • 0
    @SortOfTested Prakma is just a library to compile JSX into JS. Is just one function with that functionality. I don't need what you mentioned before, do I?
  • 4
    @leocast you don't *need* it no, but it can be a nice addition for developers that use TypeScript to integrate it easier.

    For example in src/prakma/Prakma.js you have the function prakma with 3 args: tags, attrs and children.

    With d.ts files you can inform the editor:

    - tags should be of type string or Object

    - Define what properties the object could have (using an interface)

    - what the function returns

    They are totally up to you (you are the maintainer) but a d.ts file can be desirable :)
  • 1
    @leocast Of course you do. You can change the signature of jsx.

    Like, not having to use className, but good ol’ class instead
  • 2
    Looks awesome
Add Comment