From 696e8e04548ffca0b88a7e904e396744bb06e15f Mon Sep 17 00:00:00 2001 From: Amila Welihinda Date: Sun, 2 Jun 2019 14:46:35 -0700 Subject: [PATCH] add syntax highlighting to readme examples --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 92fa052..691ed5b 100644 --- a/README.md +++ b/README.md @@ -206,7 +206,7 @@ as React props to attach appearance, behavior, or functionality to the [Community A-Frame components](https://aframe.io/registry/) can be imported and installed through npm: -``` +```jsx import 'aframe-particle-system-component'; import 'aframe-mountain-component'; @@ -274,7 +274,7 @@ are. Use `aframe-react`'s `_ref` prop to add a callback to the underlying `` DOM node: -``` +```jsx ``` @@ -307,7 +307,7 @@ A-Frame component. `aframe-react` works with Preact. Since `aframe-react` uses `React.Component`, we have to tell Webpack to alias that to `Preact.Component`: -``` +```js resolve: { alias: { react: 'preact'