11import { graphql , Link } from 'gatsby' ;
22import PropTypes from 'prop-types' ;
33import React from 'react' ;
4-
4+ import { Grid } from 'react-bootstrap' ;
55import Layout from '../components/Layout' ;
66
77const propTypes = {
@@ -26,53 +26,59 @@ class Index extends React.Component {
2626
2727 return (
2828 < Layout data = { data } location = { location } >
29- < h1 > React Transition Group</ h1 >
30- < blockquote >
31- < p >
32- Exposes simple components useful for defining entering and exiting
33- transitions. React Transition Group is not an animation library like{ ' ' }
34- < a href = "https://github.com/chenglou/react-motion" > React-Motion</ a > ,
35- it does not animate styles by itself. Instead it exposes transition
36- stages, manages classes and group elements and manipulates the DOM
37- in useful ways, making the implementation of actual visual
38- transitions much easier.
39- </ p >
40- </ blockquote >
41- < section >
42- < h2 > Getting Started</ h2 >
43- < p />
44- < h3 className = "h4" > Installation</ h3 >
45- < pre className = "language-bash" >
46- < code >
47- { `# npm
29+ < Grid >
30+ < h1 > React Transition Group</ h1 >
31+ < blockquote >
32+ < p >
33+ Exposes simple components useful for defining entering and exiting
34+ transitions. React Transition Group is not an animation library
35+ like{ ' ' }
36+ < a href = "https://github.com/chenglou/react-motion" >
37+ React-Motion
38+ </ a > , it does not animate styles by itself. Instead it exposes
39+ transition stages, manages classes and group elements and
40+ manipulates the DOM in useful ways, making the implementation of
41+ actual visual transitions much easier.
42+ </ p >
43+ </ blockquote >
44+ < section >
45+ < h2 > Getting Started</ h2 >
46+ < p />
47+ < h3 className = "h4" > Installation</ h3 >
48+ < pre className = "language-bash" >
49+ < code >
50+ { `
51+ # npm
4852npm install react-transition-group --save
4953
5054# yarn
51- yarn add react-transition-group` }
52- </ code >
53- </ pre >
55+ yarn add react-transition-group
56+ ` . trim ( ) }
57+ </ code >
58+ </ pre >
5459
55- < h3 className = "h4" > CDN / External</ h3 >
56- < p >
57- Since react-transition-group is fairly small, the overhead of
58- including the library in your application is negligible. However, in
59- situations where it may be useful to benefit from an external CDN
60- when bundling, link to the following CDN:{ ' ' }
61- < a href = "https://unpkg.com/react-transition-group/dist/react-transition-group.min.js" >
62- https://unpkg.com/react-transition-group/dist/react-transition-group.min.js
63- </ a >
64- </ p >
65- </ section >
66- < h2 > Components</ h2 >
67- < ul >
68- { data . site . siteMetadata . componentPages . map (
69- ( { path, displayName } ) => (
70- < li key = { path } >
71- < Link to = { path } > { displayName } </ Link >
72- </ li >
73- )
74- ) }
75- </ ul >
60+ < h3 className = "h4" > CDN / External</ h3 >
61+ < p >
62+ Since react-transition-group is fairly small, the overhead of
63+ including the library in your application is negligible. However,
64+ in situations where it may be useful to benefit from an external
65+ CDN when bundling, link to the following CDN:{ ' ' }
66+ < a href = "https://unpkg.com/react-transition-group/dist/react-transition-group.min.js" >
67+ https://unpkg.com/react-transition-group/dist/react-transition-group.min.js
68+ </ a >
69+ </ p >
70+ </ section >
71+ < h2 > Components</ h2 >
72+ < ul >
73+ { data . site . siteMetadata . componentPages . map (
74+ ( { path, displayName } ) => (
75+ < li key = { path } >
76+ < Link to = { path } > { displayName } </ Link >
77+ </ li >
78+ )
79+ ) }
80+ </ ul >
81+ </ Grid >
7682 </ Layout >
7783 ) ;
7884 }
0 commit comments