Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 10:57
  • Jan 30 2019 22:22
    bitpirate starred japgolly/scalajs-react
  • Jan 30 2019 08:11

    japgolly on master

    Update docs for changes in 1.4.0 (compare)

  • Jan 29 2019 13:20
  • Jan 28 2019 08:08
    booleguo starred japgolly/scalajs-react
  • Jan 28 2019 04:09

    japgolly on v1.4.0

    (compare)

  • Jan 28 2019 04:05

    japgolly on master

    Towards v1.4.1 (compare)

  • Jan 28 2019 04:04

    japgolly on master

    Prepare for v1.4.0 Upgrade React to 16.6.3 React.lazy and 85 more (compare)

  • Jan 28 2019 04:04
    japgolly closed #521
  • Jan 28 2019 04:04
    japgolly opened #521
  • Jan 28 2019 04:03

    japgolly on v1.4.x

    Add note about Reusability/Reus… doc formatting Prepare to release v1.4.0 (compare)

  • Jan 28 2019 04:02
    wiitht starred japgolly/scalajs-react
  • Jan 28 2019 03:18

    japgolly on v1.4.x

    Test AsyncCallback.init Update Travis CI caching (compare)

  • Jan 28 2019 03:02

    japgolly on v1.4.x

    Update Travis CI cache dirs Revise changelog (compare)

  • Jan 28 2019 03:00
    japgolly labeled #520
  • Jan 28 2019 03:00
    japgolly labeled #519
  • Jan 27 2019 17:36
  • Jan 26 2019 06:49
    japgolly commented #520
  • Jan 26 2019 05:55
    japgolly commented #519
  • Jan 26 2019 02:35
    cquiroz opened #520
Ryan Peters
@sloshy
https://scalacenter.github.io/scalajs-bundler/ <-- in case you haven't already found the docs on it
And then in your HTML you want to link to your bundled output JS file
mn98
@mn98
@sloshy ok, attempted that and pushed the changes. I still see no output when opening the html.
Ryan Peters
@sloshy
anything in your browser console?
There should be a built JS file that has bundle in the name or something. Use that instead of the current one
If it's not being built, make sure you're doing fastOptJS::webpack
mn98
@mn98
image.png
I can see the title "TODO" is correct, and in the browser console I see the above.
Ryan Peters
@sloshy
Use the -fastopt-bundle.js file in your HTML instead and you should be good
mn98
@mn98
Trying with fastOptJS::webpackyields...
image.png
Ryan Peters
@sloshy
hmm
Ah I see
You have no element with the id root
Put a <div id="root"></div> in your body above your script
Your code is looking for an element with that ID and it can't find it. I usually name mine something else like "app" so it's entirely arbitrary what you call it.
mn98
@mn98
@sloshy Hallelujah! Thank you again for your patience!!
Ryan Peters
@sloshy
Oh it's nothing, like ten minutes of my day and now somebody is up and running w/ scalajs-react
If this is your first stab at functional-ish UI (or web UI at all) then there are going to be a whole lot more moments like this, trust me
CSS in particular is a nightmare
good luck and have fun
mn98
@mn98
yes, not hard to tell that this is my first stab at web-UI and I'm going functional/compositional from the start
Ryan Peters
@sloshy
Good way to go. I went the other way around and started with jquery, knockoutJS, and then Angular 2
Then I found Scala and tried react through it. Never going back.
mn98
@mn98
sounds like I've waited until the right time then!
elkhadirzyad
@elkhadirzyad
hi every one, i have a variable val cell = getHeaderDiv(config) with type: japgolly.scalajs.react.vdom.html_<^.Ta
gMod. when i tried cell(/add some things /) it gives error: TagMod does not take parameters. in japgolly version 1.1.1 it did not give errors
David Barri
@japgolly
@elkhadirzyad instead of a(b) you now have to compose TagMods by TagMod(a, b). If you're upgrading from 1.1.1 I strongly recommend you go through all the changelogs from 1.1.1 to 1.7.0. I know it's a good 15 minutes of nothing but reading but there are plenty of other changes you'll run into as well if you're upgrading from 1.1.1. Firstly it's all documented in the changelogs; secondly, you should run the migration scripts that are in a lot of the changelogs as it will automate the majority of the upgrade for you. Good luck!
elkhadirzyad
@elkhadirzyad
Thanks, mr @japgolly , can i execute these scripts on windows os ?
Armin Keyvanloo
@arminio
Is there an up to date project skeleton available somewhere to get one started with the latest versions of scalajs and scalajs-react?
nafg
@nafg
What would you like such a skeleton to contain?
Armin Keyvanloo
@arminio
@nafg Just a working index page would be great. I can't bootstrap a new project manually. I followed the steps on scalajs-react and getting this error:
Uncaught ReferenceError: require is not defined at React.scala:41
Armin Keyvanloo
@arminio
Something like this: https://github.com/chandu0101/scalajs-react-template
But with sjs 1.1.0 and sjs-react 1.7.5
mn98
@mn98
@arminio I had similar pain recently in trying to get started with the simplest of examples. Here's a TODO app I finally got working with no small amount of help from @sloshy!
Armin Keyvanloo
@arminio
thx @mn98. If it works, it would be super helpful.
yup, it works! thanks again @mn98
you should speak with @japgolly to add it (https://github.com/mn98/scalajs-react-examples) to git repos home page as a working bare project
mn98
@mn98
Great, hope that helps. I'd be happy for it to be added, but it might need a bit of a once-over and tidy up from an expert.
1 reply
mn98
@mn98
@arminio @japgolly Hi both, fwiw I tidied up the project skeleton a bit. If it's at all helpful, please do feel free to reference/fork/whatever it.
elkhadirzyad
@elkhadirzyad
do someone worked on material ui 3.9.4 (proposed by https://scalablytyped.org), i need help to do a demo of the component "Stepper" with "Steps", any help ?
zhourelyamani
@zhourelyamani
I want to do a demo of autoComplete component on materiai ui 3.9.4. Can some one help?
Roberto Leibman
@rleibman
@elkhadirzyad where's your repo?
elkhadirzyad
@elkhadirzyad
Autocomplete is blocking me 2
Roberto Leibman
@rleibman
uh? Autocomplete is all nice and good, but in order to be a good developer you really shouldn't rely on it, use emacs or notepad if you need.
Rohan Sircar
@rohan-sircar
I think they're talking about a component called autocomplete, not intellisense
elkhadirzyad
@elkhadirzyad
Yes we r talking about mui autocomplete component
Roberto Leibman
@rleibman
Ah... anyway, I repeat, where's your repo? I've suggested before what you should do.
elkhadirzyad
@elkhadirzyad
image.png
hello everyone, I have a project containing all material ui demos, since autocomplete does not exist, i tried to rely on downshift (https://github.com/trepidacious/scalajs-react-downshift) to create one, in compilation i have no errors, but when i run the app , i got the error below, someone can help ?
Øyvind Raddum Berg
@oyvindberg
I felt curious enough about whether downshift worked with ST (because I need some autocompletion as well and had worked with it before) that I ported the first example I found: https://github.com/ScalablyTyped/SlinkyDemos/blob/master/downshift/src/main/scala/demo/Demo.scala
I guess both slinky and scalajs-react misses syntax for spread props, otherwise it worked perfectly
elkhadirzyad
@elkhadirzyad
image.png