You could perhaps use es6 templates for better readability
HN user
sktguha
Frontend engineer, working in react and redux and JavaScript ,at Salesforce banglore, India
How is it different from something like node localstorage ?
cool stuff!
Yes I am curious to see how it evolves
I believe React native is already there for windows 10, not sure how mature it is however.
yes agreed. very well said.
Hi, I had a related question. I want to make a VSCode extension for highlighting state and props in React in a different colour. How would I do that. Any tips ?
The idea is similar to code snippets in vscode, but here the difference is you can specify any arbitrary node.js script to run.
So if you select some text in vscode and press a shortcut key , your script is given the selected text as first argument(and other options in second argument like absolutePath etc) and whatever is returned from your script , the selected text will be changed to that value
Add React and Redux also . Although Redux is a lot simpler
you could possible write an IDE plugin that hides the types information and only show them on hover etc. I don't think this reason is that strong of a point IMHO.
indeed . so the galaxy cluster might have moved by a really massive distance, assuming even if there is some universal coordinate system
interesting thought
I mean of course, that would be nice. But the thing is modern editors like vscode will automatically convert class statements to className if you copy paste plain html from elsewhere. Don't know about other attributes though.
That's a great idea!
Mind sharing your company name ? , just curious
How did you work remotely without screen sharing and all ? I mean what if the need to something similiar to screen share arose ?
I wonder if any intelligent civilisation was there on that galaxy,how incredibly advanced it must be by now , assuming it has survived till now.
event sourcing is almost never a good idea
Wait isn't event sourcing the fundamental principle of redux ? And redux is the most popular UI state manager library out there. and why you feel event sourcing is not a good idea ?
we can put underscore before the 0 so that it is a valid name
sorry must have typed by mistake in mobile
How about just oTo1InclusiveVal ? I know very simple, but would get the job done ?
Funny enough, Dan describes explicitly in his bio that he is not the creator of React
couldn't you just write the same function to handle the prop in both componentDidMount and componentDidUpdate ?
you could try google recaptcha v3 which does not require any user input and runs in background. not 100% sure however if it helps in your case but i think it should definitely help
Is there an HTML version? PDF version is impossible to read on mobile device
Regd the webext I wonder how it passes the props from client to background pages ? It is a real problem if the props are not serialisable. Note that this kind of problem would not be there in a single page client and redux store on same window context
Hi everyone , what is your opinion on gpt3 powered eslint in JavaScript coding , i.e enhanced potential issues detecting using gpt3. For example , in react redux connect if a person has passed ownprops in their mapstate to props however are not using it in returned values ,then it still causes a calling of the function on every render. Example:
connect(mapstateToProps, (dispatch,ownProps) => { console.log(ownProps) return {} }
// normal eslint check for unused variable will fail here
But with gpt3 it can detect that ownProps is not used in the returned object hence can flag it as potential issue
What other eslint rules can gpt3 enhance ?
can you post link to your lifestyle business ?
How about asking them to design and build a basic version of react/ redux/ react-redux/ react-router etc
Did you beat recaptcha v3 also ?