Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
insin
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
361.
▲
Show HN: Instant React, Preact and Inferno apps from a single .js file
(medium.com)
2 points
by
insin
10y ago
|
0 comments
362.
▲
by
insin
10y ago
Monster Hunter has become a console seller for me after playing it for the first time on the Wii, so it looks like I'll be getting a Switch too. (Cost of the console / number of hours played on Monster Hunter alone) always justifi
363.
▲
by
insin
10y ago
> Even though the React community seems to favor ES6, at least give Typescript a serious try. What's the story with dipping your toe into TypeScript on existing projects? I'm using Webpack and babel-loader, so I'm not inte
364.
▲
by
insin
10y ago
You can use this fork of react-scripts which adds configuration for enabling new options, including use of style preprocessors: https://github.com/kitze/create-react-app
365.
▲
by
insin
10y ago
When you're at the point of needing to configure a tool which handles a base config, you need to learn the underlying tools anyway at that point, but without the experience of having built the base config up. Keeping config directly in
366.
▲
Inferno v1.0 released
(twitter.com)
2 points
by
insin
10y ago
|
0 comments
367.
▲
by
insin
10y ago
It's Preact, the screenshotted code is from the Preact homepage.
368.
▲
by
insin
10y ago
If you're curious where this came from, it's actually a Preact component (props and state being passed to render() is the tell-tale sign), taken from its homepage: https://preactjs.com/
369.
▲
Webpack Concepts
(webpack.js.org)
7 points
by
insin
10y ago
|
0 comments
370.
▲
by
insin
10y ago
This is how I've come to write that in React, after giving up on attempting to find a consistent way to write ternaries which I would find acceptable when revisiting them (it just never happened): let Home = ({location}) =>
371.
▲
by
insin
10y ago
I think your opinion on putting weird stuff in your HTML attributes vs. putting weird HTML-like stuff in your JavaScript is enough to make an early call on whether you'll prefer React-like libraries or Vue-like libraries. As a programm
372.
▲
by
insin
10y ago
https://sourcemaking.com/ajax/content/static.json
373.
▲
by
insin
10y ago
npm puts node_modules/.bin/ on the PATH when running scripts, or you can just run node_modules/.bin/<whatever> if you're not using npm scripts.
374.
▲
by
insin
10y ago
One of the Redux utility functions I reuse across projects [1] would live in an ActionDispatcherFactoryFactory class in Java, but it can just be an 8 line function in JavaScript. [1] https://gist.github.com/insin/526b7b
375.
▲
by
insin
10y ago
The React ESLint plugin's no-unknown-property rule is handy for catching (and automatically fixing) this: https://github.com/yannickcr/eslint-plugin-react/blob/master...
376.
▲
by
insin
10y ago
Worth checking if there's a huge .babel.json cache file in your home directory and deleting it.
377.
▲
Developing React Components and Libraries with nwb
(medium.com)
2 points
by
insin
10y ago
|
0 comments
378.
▲
by
insin
10y ago
Bonus points for being meta? function createOlympian() { let props = ['name', 'sport', 'country'] let olympian = { log() { console.log(props.map(prop => this[prop]).join(
379.
▲
*A* Future for React Development Tooling
(medium.com)
2 points
by
insin
10y ago
|
0 comments
380.
▲
by
insin
10y ago
I'd say Webpack plays that role in the React community, just without a blessed and shared way to configure it.
381.
▲
by
insin
10y ago
> But why don’t we? Because we want to experience finding out if R + L really = J ourselves, rather than just reading about it on the internet, damnit! :)
382.
▲
by
insin
10y ago
Then I didn't understand the complaint, as this does include a dist/ folder in the npm package (which is also what npmcdn uses), so you'd just npm install it as normal :)
383.
▲
by
insin
10y ago
The README contains a link to the built version on npmcdn: http://npmcdn.com/hack
384.
▲
by
insin
10y ago
I don't think the number of dependencies per individual project is a critical factor when setting up an internal npm mirror for all your projects (e.g. with Nexus [1] where I work) or vendoring dependencies per project (e.g. `npm shrin
385.
▲
by
insin
10y ago
> Polluting npm with dozen of one-liner is not a good idea (never forget left-pad) The size or scope of left-pad wasn't the issue, the ability to unpublish modules which were depended on was [1] http://blog.npmjs.org/
386.
▲
by
insin
10y ago
Clarification on the stability and dogfooding parts of this post: https://github.com/facebook/react/pull/7292/files
387.
▲
by
insin
10y ago
Python REPL: >>> 0.3 - 0.1 0.19999999999999998 Ruby REPL: 0.3 - 0.1 => 0.19999999999999998
388.
▲
by
insin
10y ago
Are you just letting us know you've determined that you can easily solve your own problem in less time than it took to describe it, but chose not to; or are you very subtly asking HN to inline hn.js into every single page because <%
389.
▲
by
insin
10y ago
You're not alone :) Luckily, this didn't break my userscript, so I just updated it to hide the new built-in toggle.
390.
▲
by
insin
10y ago
Making it a slightly bigger target with a dash would also be useful: [–] instead of [-]
More ›