Git Product home page Git Product logo

Comments (4)

japgolly avatar japgolly commented on July 24, 2024

I typically want one of 3 things:

  1. No dom building stuff.
  2. All html tags and attrs with no prefix.
  3. All html tags and attrs with prefix.

Separately, I sometimes need access to Tag and Modifier for fn args.

I Imagine something like this:

  • I only want tag and modifer. - import x.{Tag, Modifier}
  • All, no prefix. - import x._ - Scope: implicits._, tags, attrs, no tag/modifier.
  • All, on prefix. - import x._ - Scope: implicits._, *, no tag/modifier.

That would change

import japgolly.scalajs.react._, vdom.ReactVDom.{Tag => _, _}, all._

into something like

import japgolly.scalajs.react._, blah._

It may be a good idea to rename Tag and Modifier and bring them in via react._.

from scalajs-react.

japgolly avatar japgolly commented on July 24, 2024

Speaking of prefixes, < for tags and * for attrs looks awesome. It really makes the tags jump of the page in a sea of Scala. Make that possible for people like me.

from scalajs-react.

japgolly avatar japgolly commented on July 24, 2024

Changed * to ^ because of utest.*, plus ^ implies meaning when each attr on new and indented.

Next:

  • Moved into main import? (ie. import japgolly.scalajs.react._ instead of import japgolly.scalajs.react._, vdom.prefix_<^._)
  • Deprecate and advise against vdom.all._?
  • Update doco.

from scalajs-react.

japgolly avatar japgolly commented on July 24, 2024

Fixed in 87793b1. Yes!!!!!

from scalajs-react.

Related Issues (20)

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.