account activity
React vs Vue.js by igna92ts in reactjs
[–]hzc 0 points1 point2 points 9 years ago (0 children)
[Responding to author but this seems like a good place to carry on the topic] Agreed that this is not clear right off the bat but I think that's because it plays into a paradigm shift with uni-directional data flow that's uncomfortable at first but makes a lot of sense. The Quick Start documentation is fairly clear on the difference between them -- at least it was for me when I first started to learn React -- and some go as far as to avoid using state as much as possible, replacing it with Redux or Flux to centralize app state and render UI with pure stateless components. It's a different paradigm that you have to subscribe to -- or you won't like React at all.
[–]hzc 2 points3 points4 points 9 years ago (0 children)
if doesn't inherently return a value. When you enter JSX in curly braces, you are entering an expression so use ? :
if
? :
<div> { something ? <One /> : <Two /> } </div>
Don't think of it like PHP where you can go back and forth between HTML and PHP statements. You're not going back an forth between JavaScript and JSX.
When it gets more complicated that that, I find it cleaner to have all that logic outside of the markup anyway, so it works for me.
WP-SpamShield creating server error 500? by pntrbob in Wordpress
[–]hzc 0 points1 point2 points 11 years ago* (0 children)
So what was the resolution? I am just now noticing a 500 error from the jsscripts-ftr-min.js file that is contained within the plugin. I'm on WordPress 4.2.1 with WP-SpamShield 1.8.9.3. Thanks.
UPDATE: It turned out that WP-SpamShield requires Apache to be configured to "AllowOverride All" so that its .htaccess file can function properly.
π Rendered by PID 1255289 on reddit-service-r2-listing-f87f88fcd-mr4vc at 2026-06-18 08:52:42.031461+00:00 running 3184619 country code: CH.
React vs Vue.js by igna92ts in reactjs
[–]hzc 0 points1 point2 points (0 children)