Comments (4)
I typically want one of 3 things:
- No dom building stuff.
- All html tags and attrs with no prefix.
- 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.
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.
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 ofimport japgolly.scalajs.react._, vdom.prefix_<^._
) - Deprecate and advise against
vdom.all._
? - Update doco.
from scalajs-react.
Fixed in 87793b1. Yes!!!!!
from scalajs-react.
Related Issues (20)
- Export `assertOuterHTML` HOT 1
- Deprecate `Mounted` component types HOT 2
- Add default arg to `ReactTestUtils.withRendered` HOT 1
- ScalaFnComponent is anonymous HOT 2
- Consider using `DocumentFragments` in `ReactTestUtils` HOT 1
- Re-evaluate `ComponentDom` post- React 18
- Is there a way to integrate Components with cats.effect.Ref? HOT 1
- Ref not always set HOT 2
- Syntax to integrate `useContext` with context function in Scala 3 HOT 1
- Compilation fails in Scala 3 when deriving Reusability for case classes with multiple parameter groups HOT 1
- Missing getDerivedStateFromError
- Missing / misspelled packages in MODULES.md HOT 1
- Add support for Discussions tab in Github HOT 1
- Modern testing recipe?
- Cannot mix static and dynamic routes even if conditional
- A minimal setup fails with Scala 3 HOT 5
- Provide default IO/SyncIO error handler for component
- ScalaFnComponent doesn't include displayName HOT 1
- Another way to define hook components
- AsyncCallback + cats, gracefully handling errors with EitherT: unexpected behaviour HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scalajs-react.