Paul:
This is the React starter project we made/use at my job…
https://github.com/t7/react-starter
You can see an example of it running here…
| <?xml version="1.0" encoding="UTF-8"?> | |
| <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" | |
| jcr:primaryType="cq:Component" | |
| jcr:title="Rich Text" | |
| sling:resourceSuperType="core/wcm/components/text/v2/text" | |
| componentGroup="General"/> |
| /* | |
| Template literals if-statement example | |
| Using a single-line conditional, we can create an if-statements within template literals. | |
| */ | |
| function makeHTML(title) { | |
| return ` | |
| ${title ? ` | |
| This element has a title, and it is "${title}" | |
| ` : ` |
Paul:
This is the React starter project we made/use at my job…
https://github.com/t7/react-starter
You can see an example of it running here…
| var items = [{ sold: true}, {sold: false}, {sold: true}]; | |
| for (var i = 0; i < items.length; i++) { | |
| if (items[i].sold) { | |
| console.log('you done bought me'); | |
| } | |
| } |
Update the hosts file in /etc/hosts to maintain multiple domains/hostnames on a local machine for 127.0.0.1 and setup a VirtualHost container in /Applications/MAMP/conf/apache/extra/httpd-vhost.conf via /Applications/MAMP/conf/apache/httpd.conf for a name-based virtual host.
Only suitable for MAMP users under OS X Lion, OS X Mountain Lion, and OS X Mavericks on Apache-Port 80 and MySQL-Port 3306.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.