From ec4645c144b63640bc6b9505c248474e4d3edd5c Mon Sep 17 00:00:00 2001 From: David Mann Date: Wed, 13 Mar 2024 23:06:18 +0100 Subject: [PATCH 1/2] add remote file info --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 71dbb28..0ef0d00 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,20 @@ export default class LottieControl extends React.Component { ``` +Load a remote .json file for your player + +```jsx +import Lottie from 'react-lottie'; + +``` + ### props The `` Component supports the following components: From eaca2ac82e8c9c40db79014976428d11d0303637 Mon Sep 17 00:00:00 2001 From: David Mann Date: Wed, 13 Mar 2024 23:13:36 +0100 Subject: [PATCH 2/2] fixed syntax of remote files --- README.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 0ef0d00..9c74dad 100644 --- a/README.md +++ b/README.md @@ -80,15 +80,16 @@ export default class LottieControl extends React.Component { Load a remote .json file for your player ```jsx -import Lottie from 'react-lottie'; - + import Lottie from 'react-lottie'; + + ``` ### props