프로젝트
GitHub에서 보기
diegomura/react-log
소개
콘솔을 위한 React
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
React for the Console
Install
yarn add react-log
or
npm install react-log --save
Usage
react-log exports a single React Component called Log. Each child will not be rendered on the DOM, but will produce an analog representation on the console.
No proprietary syntax is needed for child HTML elements. react-log handles the parsing and rendering of native React-DOM elements for you.
Let's see it in action!
Example
import Log from 'react-log';
<Log>
<h1
style={{
color: 'black',
fontSize: '50px',
fontWeight: 'normal',
fontFamily: 'Open Sans, sans-serif',
}}>
React
<span
style={{
color: 'white',
fontSize: '45px',
fontWeight: 'bold',
marginLeft: '10px',
padding: '5px',
fontFamily: 'Arial, Helvetica, sans-serif',
background: 'linear-gradient(to bottom right, #13493b, #016a26)',
}}>
log
</span>
</h1>
<a
href='https://github.com/diegomura/react-log'
style={{ display: 'block', lineHeight: '40px' }}
>
For more info
</a>
</Log>
Output

Run the example yourself
On the root of the project:
cd examples/
npm install
npm start
The server should be listening now on http://localhost:8080
Browser Support
Tested and working on Chrome 51 and Firefox 45. Does not work on Safari or IE as far I've seen. Yet.
License
MIT © Diego Muracciole
관련 프로젝트 살펴보기
불러오는 중…