EasyUI Forum
April 24, 2024, 11:09:36 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [SOLVED] How to start?  (Read 6001 times)
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« on: December 31, 2018, 03:49:24 AM »

Hello
I want to try React version but have no idea how to start. Here https://www.jeasyui.com/documentation5/index.php I can see some steps..
1. I installed it using npm install rc-easyui --save
2. I created index.css file and put this inside:
@import '~rc-easyui/dist/themes/default/easyui.css';
@import '~rc-easyui/dist/themes/icon.css';
@import '~rc-easyui/dist/themes/react.css';
3. I created App.js and put whole code frominstructions:
import React from 'react';
import { DataGrid, GridColumn } from 'rc-easyui';
....

now what?
where is index.html file and how to actually run this sample?
Thank you.
« Last Edit: December 31, 2018, 09:07:04 AM by Pierre » Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: December 31, 2018, 07:15:10 AM »

Please install 'create-react-app' and run it to create a new app. Enter the app directory and then follow this instruction to install EasyUI for React. https://www.jeasyui.com/documentation5/index.php

Code:
npm install -g create-react-app
create-react-app my-app
cd my-app
Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #2 on: December 31, 2018, 09:06:51 AM »

OK thank you so much.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!